]> 4ch.mooo.com Git - 16.git/commitdiff
I DID IT PLANAR BUFFERING IS RENDERED! IT JUST NEEDS POLISHING~
authorsparky4 <sparky4@cock.li>
Thu, 29 Oct 2015 19:43:53 +0000 (14:43 -0500)
committersparky4 <sparky4@cock.li>
Thu, 29 Oct 2015 19:43:53 +0000 (14:43 -0500)
16.exe
exmmtest.exe
planrpcx.exe
scroll.exe
src/lib/scroll16.c
src/lib/scroll16.h
src/scroll.c
test.exe

diff --git a/16.exe b/16.exe
index b2de2cf4325eda78d29398f5dc56612c027091d9..98ab90f9c7b11751171219a0ed7402f5f7c61144 100755 (executable)
Binary files a/16.exe and b/16.exe differ
index 573d7487b06d0a00ea7f7e6ce4b153344d80b4b1..659f5ba96f80acc4c2eccca190b20f4e7cfba319 100755 (executable)
Binary files a/exmmtest.exe and b/exmmtest.exe differ
index 429816d95093ad2f54981111e5dc923fcc96da3a..6abccccd6ab823f54698a60b63ba8061c21c07cb 100755 (executable)
Binary files a/planrpcx.exe and b/planrpcx.exe differ
index c495ac894aec013e3a4ad1caf1620d35a296065a..053a9a692931557dda972ab26d47fa149b56897b 100755 (executable)
Binary files a/scroll.exe and b/scroll.exe differ
index 39b9394d8df6a42c58239aaf680169ee7f7eb8a0..cc3bf84326cd73a47a5347992ced2d3fe6669d92 100755 (executable)
@@ -484,7 +484,7 @@ mapDrawTile(tiles_t *t, word i, page_t *page, word x, word y)
                switch(t->debug_text)
                {
                        case 0:
-#ifndef SPRITE
+#ifndef TILERENDER
                                modexClearRegion(page, x, y, t->tileWidth, t->tileHeight, ((t->debug_data[i])+1)*2);
                                //cannot print number value du to it being slow as bakapee
 #else
index 300a05141085b08fa7a50365740519e60c4360ad..b1b8a7453cd54da1b27f2b0803a64d42f0ab0a5e 100755 (executable)
@@ -33,7 +33,8 @@
 #include "src/lib/timer.h"
 #include "src/lib/wcpu/wcpu.h"
 
-//#define SPRITE
+#define SPRITE
+#define TILERENDER
 
 typedef struct {
        map_t *map;
index 96f0660c6f11eb53a593253e5831b7423c6d7d03..23307d63ff47179e057430db08d018e347d96f51 100755 (executable)
@@ -87,7 +87,7 @@ void main(int argc, char *argv[])
        /* draw the tiles */
 #ifdef MODEX
        ptr = map.data;
-       //mappalptr = map.tiles->bt_data->palette;
+       mappalptr = map.tiles->btdata->palette;
 
        /* data */
        p = bitmapLoadPcx("data/ptmp.pcx"); // load sprite
@@ -186,7 +186,7 @@ void main(int argc, char *argv[])
        npc0.d=0;
        modexDrawSpriteRegion(spri->page, npc0.x-4, npc0.y-TILEWH, 24, 64, 24, 32, &npctmp);*/
        modexCopyPageRegion(mv[1].page, mv[0].page, 0, 0, 0, 0, mv[0].page->width, mv[0].page->height);
-#ifndef        SPRITE
+#ifdef SPRITE
        modexClearRegion(mv[1].page, player[0].x-4, player[0].y-TILEWH, 24, 32, 15);
 #else
        modexDrawSpritePBufRegion(spri->page, player[0].x-4, player[0].y-TILEWH, 24, 64, 24, 32, &player[0].data);
index f9b03820b8617768b708181ec168d26e66a306e5..a3678822e2bea2059e81b19310e1b1c1290dd0bf 100755 (executable)
Binary files a/test.exe and b/test.exe differ