From: sparky4 Date: Wed, 16 Jul 2014 14:24:52 +0000 (-0500) Subject: new file: 16/PCX_LIB/chikyuu.pcx X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=e39146d878b2182cf44e648f55a3253dc5b8e98d;p=16.git new file: 16/PCX_LIB/chikyuu.pcx modified: 16/modex16/chikyuu.pcx renamed: 16/chikyuu.pcx -> 16/w_modex/CHIKYUU.PCX modified: 16/w_modex/M.BAT modified: 16/w_modex/TEST.CPP modified: 16/w_modex/TEST.EXE new file: README --- diff --git a/16/PCX_LIB/chikyuu.pcx b/16/PCX_LIB/chikyuu.pcx new file mode 100644 index 00000000..23bb19b3 Binary files /dev/null and b/16/PCX_LIB/chikyuu.pcx differ diff --git a/16/modex16/chikyuu.pcx b/16/modex16/chikyuu.pcx index 61eac4cc..610a6c32 100644 Binary files a/16/modex16/chikyuu.pcx and b/16/modex16/chikyuu.pcx differ diff --git a/16/chikyuu.pcx b/16/w_modex/CHIKYUU.PCX similarity index 98% rename from 16/chikyuu.pcx rename to 16/w_modex/CHIKYUU.PCX index 61eac4cc..610a6c32 100644 Binary files a/16/chikyuu.pcx and b/16/w_modex/CHIKYUU.PCX differ diff --git a/16/w_modex/M.BAT b/16/w_modex/M.BAT index 5bcb63a5..a5d88f5d 100644 --- a/16/w_modex/M.BAT +++ b/16/w_modex/M.BAT @@ -1,2 +1,3 @@ -wcl386 test modex xprim xpal xblitbuf fixed32 +wcl /0 test modex xprim xpal xblitbuf +rem fixed32 erase *.obj diff --git a/16/w_modex/TEST.CPP b/16/w_modex/TEST.CPP index d62d5b35..2e357b4d 100644 --- a/16/w_modex/TEST.CPP +++ b/16/w_modex/TEST.CPP @@ -5,16 +5,16 @@ #include #include -#include "fixed32.hpp" +//#include "fixed32.hpp" #include "modex.hpp" #include "xprim.hpp" #include "xpal.hpp" #include "xblitbuf.hpp" -#define FIRE_DEMO 1 -#define ROTATE_DEMO 1 -#define MONSTER_DEMO_ONE 1 -#define MONSTER_DEMO_TWO 1 +#define FIRE_DEMO 0 +#define ROTATE_DEMO 0 +#define MONSTER_DEMO_ONE 0 +#define MONSTER_DEMO_TWO 0 #define MATH_DEMO 0 int @@ -26,7 +26,7 @@ monster_demo1(void) clearX(0); - load_blitbufPCX("monster.pcx", &sprite_image); + load_blitbufPCX("chikyuu.pcx", &sprite_image); aligned_bitblitX(0, 20, &sprite_image); getch(); @@ -82,7 +82,7 @@ monster_demo2(void) clearX(0); - load_blitbufPCX("monster.pcx", &sprite_image); + load_blitbufPCX("chikyuu.pcx", &sprite_image); aligned_bitblitX(0, 20, &sprite_image); getch(); @@ -326,7 +326,7 @@ main(void) unsigned char pal[768]; COORD x1, y1, x2, y2; Iangle theta1, theta2; - Fixed32 trigSin, trigCos; + //----Fixed32 trigSin, trigCos; blitbuf blit_image, sprite_image; clock_t begin, end; short int x, y, temp, done; @@ -370,7 +370,7 @@ main(void) getch(); #endif - load_blitbufPCX("spock.pcx", &blit_image); + load_blitbufPCX("chikyuu.pcx", &blit_image); scale_blitbuf(160, 100, &blit_image); aligned_bitblitX(0, 0, &blit_image); @@ -401,7 +401,7 @@ main(void) getch(); clear_blitbuf(&blit_image); - load_blitbufPCX("spock.pcx", &blit_image); + load_blitbufPCX("chikyuu.pcx", &blit_image); greyscale_blitbuf(&blit_image); smooth64_paletteX(1, 0, 1); aligned_bitblitX(0, 0, &blit_image); @@ -414,7 +414,7 @@ main(void) getch(); clear_blitbuf(&blit_image); - load_blitbufPCX("spock.pcx", &blit_image); + load_blitbufPCX("chikyuu.pcx", &blit_image); aligned_bitblitX(0, 0, &blit_image); done = 0; @@ -449,7 +449,7 @@ main(void) case 'L': case 'l': - load_blitbufPCX("spock.pcx", &blit_image); + load_blitbufPCX("chikyuu.pcx", &blit_image); break; case 'R': @@ -521,7 +521,7 @@ main(void) getch(); - load_blitbufPCX("buddha.pcx", &sprite_image); + load_blitbufPCX("chikyuu.pcx", &sprite_image); transparent_bitblitX(100, 100, &sprite_image); getch(); @@ -535,7 +535,7 @@ main(void) aligned_bitblitX(84, 36, &sprite_image); getch(); - initFixed32(); + //----initFixed32(); theta1=0; count=0; @@ -593,7 +593,7 @@ main(void) set80x25(); -#if MATH_DEMO +/*#if MATH_DEMO Fixed32 c1, c2, c3, a1, a2, a3; c1 = INT_TO_FIXED(50); @@ -615,7 +615,7 @@ main(void) printf("DIV ASM version = %d\n", FIXED_TO_INT(a2)); getch(); -#endif +#endif*/ temp = (time1 - time2); printf("10000 lines took %4d ticks\n", time1); diff --git a/16/w_modex/TEST.EXE b/16/w_modex/TEST.EXE index c130bf50..ce4555c1 100644 Binary files a/16/w_modex/TEST.EXE and b/16/w_modex/TEST.EXE differ diff --git a/README b/README new file mode 100644 index 00000000..ac3e0cfb --- /dev/null +++ b/README @@ -0,0 +1,10 @@ +Open watcom to compile the code of project 16 +/ = main engine code (branched off due to lack of understanding of C++) +16/ = the current code sparky4 is working with +16/modex16/ = pngwen's code + +TODO: +1. SCROLLING!!!!!!! +2. Fix pngwen's pcx rendering code it dose not render large relolution pcx files well at all! +3. document an understrand how the main engine code works! +4. make the $#@%# game!