From dfae5ac251994a3f25f7473197f716148374e7ca Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Mon, 21 Mar 2022 13:42:51 -0400 Subject: player starts in the middle of first chunk now --- src/game.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index edc1605..b5d667a 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -26,9 +26,9 @@ Game::Game(std::mt19937& rng, Muxer& muxer, Renderer& renderer) : tick(); tick(); - for (int y = -1; y <= 1; y++) + for (int y = player_y-1; y <= player_y+1; y++) { - for (int x = -1; x <= 1; x++) + for (int x = player_x-1; x <= player_x+1; x++) { map.tile(x,y) = Tile::Floor; } -- cgit 1.4.1