From: sparky4 Date: Wed, 1 Apr 2015 05:39:58 +0000 (-0500) Subject: HOLD "O" key when game is loaded X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=82c03114f1398b387713ae095b130ac9c57d96bc;p=16.git HOLD "O" key when game is loaded modified: data/g.pal modified: pcxtest.exe modified: scroll.exe modified: src/lib/modex16.c modified: src/lib/modex16.h modified: src/scroll.c modified: test.exe modified: test2.exe --- diff --git a/data/g.pal b/data/g.pal index c5950c49..6817b366 100644 Binary files a/data/g.pal and b/data/g.pal differ diff --git a/pcxtest.exe b/pcxtest.exe index a3cc4490..4da808b5 100644 Binary files a/pcxtest.exe and b/pcxtest.exe differ diff --git a/scroll.exe b/scroll.exe index 36d2d554..9a2f597d 100644 Binary files a/scroll.exe and b/scroll.exe differ diff --git a/src/lib/modex16.c b/src/lib/modex16.c index 79d1b260..82ce2c1d 100644 --- a/src/lib/modex16.c +++ b/src/lib/modex16.c @@ -829,6 +829,23 @@ modexPalUpdate2(byte *p) } } +void +modexPalUpdate3(byte *p) +{ + int i; + modexWaitBorder(); + outp(PAL_WRITE_REG, 0); /* start at the beginning of palette */ + for(i=0; i 0 && (player.triggerx == 5 && player.triggery == 5)){ player.hp--; } //if(keyp(0x0E)) while(1){ if(xmsmalloc(24)) break; } if(keyp(25)){ pdump(bg); pdump(spri); } + if(keyp(24)){ modexPalUpdate3(gpal); pdump(bg); pdump(spri); modexPalSave(gpal); modexSavePalFile("data/g.pal", gpal); } if(keyp(87)) { diff --git a/test.exe b/test.exe index 38a347a3..f466b3d1 100644 Binary files a/test.exe and b/test.exe differ diff --git a/test2.exe b/test2.exe index 0592dc62..96c4bbe0 100644 Binary files a/test2.exe and b/test2.exe differ