#include <stdlib.h>\r
#include <time.h>\r
\r
-#include "fixed32.hpp"\r
+//#include "fixed32.hpp"\r
#include "modex.hpp"\r
#include "xprim.hpp"\r
#include "xpal.hpp"\r
#include "xblitbuf.hpp"\r
\r
-#define FIRE_DEMO 1\r
-#define ROTATE_DEMO 1\r
-#define MONSTER_DEMO_ONE 1\r
-#define MONSTER_DEMO_TWO 1\r
+#define FIRE_DEMO 0\r
+#define ROTATE_DEMO 0\r
+#define MONSTER_DEMO_ONE 0\r
+#define MONSTER_DEMO_TWO 0\r
#define MATH_DEMO 0\r
\r
int\r
\r
clearX(0);\r
\r
- load_blitbufPCX("monster.pcx", &sprite_image);\r
+ load_blitbufPCX("chikyuu.pcx", &sprite_image);\r
aligned_bitblitX(0, 20, &sprite_image);\r
getch();\r
\r
\r
clearX(0);\r
\r
- load_blitbufPCX("monster.pcx", &sprite_image);\r
+ load_blitbufPCX("chikyuu.pcx", &sprite_image);\r
aligned_bitblitX(0, 20, &sprite_image);\r
getch();\r
\r
unsigned char pal[768];\r
COORD x1, y1, x2, y2;\r
Iangle theta1, theta2;\r
- Fixed32 trigSin, trigCos;\r
+ //----Fixed32 trigSin, trigCos;\r
blitbuf blit_image, sprite_image;\r
clock_t begin, end;\r
short int x, y, temp, done;\r
getch();\r
#endif\r
\r
- load_blitbufPCX("spock.pcx", &blit_image);\r
+ load_blitbufPCX("chikyuu.pcx", &blit_image);\r
scale_blitbuf(160, 100, &blit_image);\r
aligned_bitblitX(0, 0, &blit_image);\r
\r
getch();\r
\r
clear_blitbuf(&blit_image);\r
- load_blitbufPCX("spock.pcx", &blit_image);\r
+ load_blitbufPCX("chikyuu.pcx", &blit_image);\r
greyscale_blitbuf(&blit_image);\r
smooth64_paletteX(1, 0, 1);\r
aligned_bitblitX(0, 0, &blit_image);\r
getch();\r
\r
clear_blitbuf(&blit_image);\r
- load_blitbufPCX("spock.pcx", &blit_image);\r
+ load_blitbufPCX("chikyuu.pcx", &blit_image);\r
aligned_bitblitX(0, 0, &blit_image);\r
\r
done = 0;\r
\r
case 'L':\r
case 'l':\r
- load_blitbufPCX("spock.pcx", &blit_image);\r
+ load_blitbufPCX("chikyuu.pcx", &blit_image);\r
break;\r
\r
case 'R':\r
\r
getch();\r
\r
- load_blitbufPCX("buddha.pcx", &sprite_image);\r
+ load_blitbufPCX("chikyuu.pcx", &sprite_image);\r
transparent_bitblitX(100, 100, &sprite_image);\r
\r
getch();\r
aligned_bitblitX(84, 36, &sprite_image);\r
getch();\r
\r
- initFixed32();\r
+ //----initFixed32();\r
\r
theta1=0;\r
count=0;\r
\r
set80x25();\r
\r
-#if MATH_DEMO\r
+/*#if MATH_DEMO\r
Fixed32 c1, c2, c3, a1, a2, a3;\r
\r
c1 = INT_TO_FIXED(50);\r
printf("DIV ASM version = %d\n", FIXED_TO_INT(a2));\r
\r
getch();\r
-#endif\r
+#endif*/\r
\r
temp = (time1 - time2);\r
printf("10000 lines took %4d ticks\n", time1);\r