From: sparky4 Date: Thu, 29 Oct 2015 19:43:53 +0000 (-0500) Subject: I DID IT PLANAR BUFFERING IS RENDERED! IT JUST NEEDS POLISHING~ X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=0700b16203a3e0325bd4186546b29043b94d3c43;p=16.git I DID IT PLANAR BUFFERING IS RENDERED! IT JUST NEEDS POLISHING~ --- diff --git a/16.exe b/16.exe index b2de2cf4..98ab90f9 100755 Binary files a/16.exe and b/16.exe differ diff --git a/exmmtest.exe b/exmmtest.exe index 573d7487..659f5ba9 100755 Binary files a/exmmtest.exe and b/exmmtest.exe differ diff --git a/planrpcx.exe b/planrpcx.exe index 429816d9..6abccccd 100755 Binary files a/planrpcx.exe and b/planrpcx.exe differ diff --git a/scroll.exe b/scroll.exe index c495ac89..053a9a69 100755 Binary files a/scroll.exe and b/scroll.exe differ diff --git a/src/lib/scroll16.c b/src/lib/scroll16.c index 39b9394d..cc3bf843 100755 --- a/src/lib/scroll16.c +++ b/src/lib/scroll16.c @@ -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 diff --git a/src/lib/scroll16.h b/src/lib/scroll16.h index 300a0514..b1b8a745 100755 --- a/src/lib/scroll16.h +++ b/src/lib/scroll16.h @@ -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; diff --git a/src/scroll.c b/src/scroll.c index 96f0660c..23307d63 100755 --- a/src/scroll.c +++ b/src/scroll.c @@ -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); diff --git a/test.exe b/test.exe index f9b03820..a3678822 100755 Binary files a/test.exe and b/test.exe differ