From: sparky4 Date: Wed, 15 Feb 2017 21:36:32 +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=f76e2f4cbbdeb94abb2271379092284f4a7f9d29;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, i added a checker so it will not draw junk==== --- diff --git a/src/lib/scroll16.c b/src/lib/scroll16.c index 469ed1f7..c466be41 100755 --- a/src/lib/scroll16.c +++ b/src/lib/scroll16.c @@ -603,8 +603,8 @@ 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]){ - sprintf(global_temp_status_text2, "%u", mv[id].map->layerdata[z].data[i]); modexprint(mv[id].page, mv[id].dx, (y+((z-1)*4))>>2, 1, 0, PALMAPDRAWW, z+2, global_temp_status_text2); + if(mv[id].map->layerdata[z].data[i] && (mv[id].page->sw+mv[id].dxThresh)){ + 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,8 +629,8 @@ 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]){ - sprintf(global_temp_status_text2, "%u", mv[id].map->layerdata[z].data[i]); modexprint(mv[id].page, (x+((z-1)*4))>>2, mv[id].dy, 1, 0, PALMAPDRAWW, z+2, global_temp_status_text2); + if(mv[id].map->layerdata[z].data[i] && (mv[id].page->sh+mv[id].dyThresh)){ + 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); } }