From f76e2f4cbbdeb94abb2271379092284f4a7f9d29 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Wed, 15 Feb 2017 15:36:32 -0600 Subject: [PATCH] ==== 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==== --- src/lib/scroll16.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); } } -- 2.39.5