From: sparky4 Date: Wed, 15 Feb 2017 22:42:34 +0000 (-0600) Subject: ==== INITIAL LAYER MAP STUFF DONE, added mapdraw layer ontop of bg, going to implemen... X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=588e08908734985a4bf259afbc1aec62aeb33d87;p=16.git ==== INITIAL LAYER MAP STUFF DONE, added mapdraw layer ontop of bg, going to implement actors [objects and shit] into the code next, then make support for tilesets, checker did not work unknown reason why it draws junk==== --- diff --git a/data/G.PAL b/data/G.PAL index 8092380a..d453ea35 100755 Binary files a/data/G.PAL and b/data/G.PAL differ diff --git a/pee b/pee deleted file mode 100755 index e69de29b..00000000 diff --git a/src/lib/scroll16.c b/src/lib/scroll16.c index c50ebb4a..d4583b99 100755 --- a/src/lib/scroll16.c +++ b/src/lib/scroll16.c @@ -603,7 +603,7 @@ if(pagedelayrendermap){ sprintf(global_temp_status_text, "%-3u", mv[id].dx); mod if(i>=0){ mapDrawTile(mv[id].map->MAPTILESPTR, mv[id].map->layerdata[0].data[i], mv[id].page, mv[id].dx, y); for(z=1;z<=2;z++){ - if(mv[id].map->layerdata[z].data[i] && mv->dymap->height){ + if(mv[id].map->layerdata[z].data[i]){ sprintf(global_temp_status_text2, "%u", mv[id].map->layerdata[z].data[i]); modexprint(mv[id].page, mv[id].dx, y, 1, 0, PALMAPDRAWW, z+2, global_temp_status_text2); //mapDrawTile(mv[id].map->MAPTILESPTR, mv[id].map->layerdata[z].data[i], mv[id].page, mv[id].dx, y); } @@ -629,7 +629,7 @@ if(pagedelayrendermap){ sprintf(global_temp_status_text, "%-3u", mv[id].dy); mod if(i>=0){ mapDrawTile(mv[id].map->MAPTILESPTR, mv[id].map->layerdata[0].data[i], mv[id].page, x, mv[id].dy); for(z=1;z<=2;z++){ - if(mv[id].map->layerdata[z].data[i] && mv->dxmap->width){ + if(mv[id].map->layerdata[z].data[i]){ sprintf(global_temp_status_text2, "%u", mv[id].map->layerdata[z].data[i]); modexprint(mv[id].page, x, mv[id].dy, 1, 0, PALMAPDRAWW, z+2, global_temp_status_text2); //mapDrawTile(mv[id].map->MAPTILESPTR, mv[id].map->layerdata[z].data[i], mv[id].page, x, mv[id].dy); }