]> 4ch.mooo.com Git - 16.git/commitdiff
HOLD "O" key when game is loaded
authorsparky4 <sparky4@cock.li>
Wed, 1 Apr 2015 05:39:58 +0000 (00:39 -0500)
committersparky4 <sparky4@cock.li>
Wed, 1 Apr 2015 05:39:58 +0000 (00:39 -0500)
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

data/g.pal
pcxtest.exe
scroll.exe
src/lib/modex16.c
src/lib/modex16.h
src/scroll.c
test.exe
test2.exe

index c5950c49f86dcbbb71004a797d6435601f25ef7f..6817b3660eaa0b447b4d44657fe8457b62dfa9ca 100644 (file)
Binary files a/data/g.pal and b/data/g.pal differ
index a3cc4490059460be694f904d17aac96333d62a07..4da808b5f21c9ce334c73846c72a6ec7270aaca4 100644 (file)
Binary files a/pcxtest.exe and b/pcxtest.exe differ
index 36d2d5544ee893c05946d9aacc5f8c0a898d6de3..9a2f597de53ef8fbba1037e633499eff9f83ae5b 100644 (file)
Binary files a/scroll.exe and b/scroll.exe differ
index 79d1b26005dd83165f652f81fcf073e8f144f95f..82ce2c1d55aab26386103d2a8d1e28923d183b8c 100644 (file)
@@ -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<PAL_SIZE/2; i++)
+       {
+               outp(PAL_DATA_REG, rand());
+       }
+       modexWaitBorder();          /* waits one retrace -- less flicker */
+       for(; i<PAL_SIZE; i++)
+       {
+               outp(PAL_DATA_REG, rand());
+       }
+}
+
 //color checker~
 //i want to make another vesion that checks the palette when the palette is being appened~
 void chkcolor(bitmap_t *bmp, word *q, word *a, word *aa, word *z)
index 6cef33cd1f19567e8041ff4c57c4c483125f2f1b..90e7d9cd1cc3335531948130c4ce84b52c5f0a9b 100644 (file)
@@ -57,6 +57,7 @@ void modexPalWhite();
 /* utility functions */
 void modexPalUpdate(bitmap_t *bmp, word *i, word qp, word aqpp);
 void modexPalUpdate2(byte *p);
+void modexPalUpdate3(byte *p);
 void chkcolor(bitmap_t *bmp, word *q, word *a, word *aa, word *z);
 void modexWaitBorder();
 
index 0044abdc0d1bcbf79efefa6f408efae2e33bd44d..e4821f2b9571d272e07b36d694378af4f67a630c 100644 (file)
@@ -543,6 +543,7 @@ void main() {
        if(player.q == (TILEWH/SPEED)+1 && player.d > 0 && (player.triggerx == 5 && player.triggery == 5)){ player.hp--; }\r
        //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))
        {
index 38a347a35881c7056b43ce8d115c770691dc1a5e..f466b3d1f061ab90b63581130935cdb7a591454c 100644 (file)
Binary files a/test.exe and b/test.exe differ
index 0592dc62f8b9b9bdc57181d035c7c3909d0b8137..96c4bbe083b727f236a0670eb7e71778b49675e2 100644 (file)
Binary files a/test2.exe and b/test2.exe differ