X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=16%2Fdos_gfx.cpp;h=268b99ae5f9393febd76d0e967ba3a385450f477;hb=e08323c46a92650aca3baae9ea1df977c15efa2e;hp=f26fd4f7de71450862b08013513d66713b964c11;hpb=d93cdaff4168104cb64af6658c22344dcecf74f1;p=16.git diff --git a/16/dos_gfx.cpp b/16/dos_gfx.cpp index f26fd4f7..268b99ae 100644 --- a/16/dos_gfx.cpp +++ b/16/dos_gfx.cpp @@ -1,7 +1,8 @@ //DOS Graphics thingy by sparky4 licence GPL v2 //a special thanks to everyone to release source code for mode X /*src\lib\*/ -#include "dos_gfx.h" +#include "dos_gfx.h" +//#include "lib\modex16.h" //____ int old_mode; //color ‚Ä‚·‚Æ @@ -9,7 +10,7 @@ short gq = LGQ; //‚Ä‚·‚Æ short bakax = 0, bakay = 0; -syte xx = rand()&0%SW, yy = rand()&0%SH, sx = 0, sy = 0; +word xx = rand()&0%SW, yy = rand()&0%SH, sx = 0, sy = 0; byte coor; byte *vga = (byte *) MK_FP(0xA000, 0); @@ -19,7 +20,7 @@ byte *vga = (byte *) MK_FP(0xA000, 0); * to be included. */ #define TESTING -#define TILE +//#define TILE ///////////////////////////////////////////////////////////////////////////// // // @@ -90,7 +91,7 @@ short colortest(){ //color ‚Ä‚·‚Æ short colorz(){ - if(gq < HGQ){ + if(gq <= HGQ){ //---- cls(gq, vaddr); cls(gq, vga); gq++; @@ -127,7 +128,7 @@ short ding(int q){ ||q==16 ) && gq == BONK){ if(coor < HGQ && coor < LGQ) coor = LGQ; - if(coor < HGQ-1){ + if(coor < HGQ){ coor++; }else{ coor = LGQ; bakax = rand()%3; bakay = rand()%3; @@ -145,7 +146,7 @@ short ding(int q){ } if(q==7||q==9){ - if(gq < HGQ){ + if(gq <= HGQ){ if(q == 7) ssd(q); if(q == 9){ ssd(q); coor++; } gq++; @@ -284,7 +285,9 @@ short ding(int q){ */ int main(void) - { + { + //bitmap_t bmp; //____ + //bmp = modexLoadPcx("chikyuu.pcx"); //____ short key,d,xpos,ypos,xdir,ydir; int ch=0x0; // main variables @@ -294,7 +297,10 @@ int main(void) ypos=TILEWH*2; xdir=1; ydir=1; - setvideo(1); + setvideo(1); + //modexPalUpdate(bmp.palette); //____ + //modexDrawBmp(VGA, 0, 0, &bmp, 0); //____ + //getch(); //____ // screen savers /*while(d!=0){ // on! @@ -310,7 +316,7 @@ int main(void) setvideo(1); } }*/ // else off - mxFillBox(0, 0, VW, BH, 10, OP_SET); + //mxFillBox(0, 0, VW, BH, 10, OP_SET); while(1){ // conditions of screen saver while(!kbhit()){ ding(key);