Wrote a simple dungeon generator

This commit is contained in:
2015-07-20 17:34:19 +10:00
parent 1f49a997c6
commit be1b23ddfb
5 changed files with 129 additions and 2 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ void TileSheet::DrawRegionTo(SDL_Renderer* const renderer, Region* const region,
//set the sclip
sclip.x = (tile-1) % countX * clip.h;
sclip.x = (tile-1) / countX * clip.w;
sclip.y = (tile-1) / countX * clip.w;
//set the dclip
dclip.x = ((region->x + i) * clip.w - camX) * scaleX;