diff options
-rw-r--r-- | macOS/Ether.xcodeproj/project.xcworkspace/xcuserdata/hatkirby.xcuserdatad/UserInterfaceState.xcuserstate | bin | 44765 -> 44765 bytes | |||
-rw-r--r-- | src/game.cpp | 4 | ||||
-rw-r--r-- | src/game.h | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/macOS/Ether.xcodeproj/project.xcworkspace/xcuserdata/hatkirby.xcuserdatad/UserInterfaceState.xcuserstate b/macOS/Ether.xcodeproj/project.xcworkspace/xcuserdata/hatkirby.xcuserdatad/UserInterfaceState.xcuserstate index b700661..41171da 100644 --- a/macOS/Ether.xcodeproj/project.xcworkspace/xcuserdata/hatkirby.xcuserdatad/UserInterfaceState.xcuserstate +++ b/macOS/Ether.xcodeproj/project.xcworkspace/xcuserdata/hatkirby.xcuserdatad/UserInterfaceState.xcuserstate | |||
Binary files differ | |||
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) : | |||
26 | tick(); | 26 | tick(); |
27 | tick(); | 27 | tick(); |
28 | 28 | ||
29 | for (int y = -1; y <= 1; y++) | 29 | for (int y = player_y-1; y <= player_y+1; y++) |
30 | { | 30 | { |
31 | for (int x = -1; x <= 1; x++) | 31 | for (int x = player_x-1; x <= player_x+1; x++) |
32 | { | 32 | { |
33 | map.tile(x,y) = Tile::Floor; | 33 | map.tile(x,y) = Tile::Floor; |
34 | } | 34 | } |
diff --git a/src/game.h b/src/game.h index ae5f157..f46eb49 100644 --- a/src/game.h +++ b/src/game.h | |||
@@ -94,10 +94,10 @@ public: | |||
94 | int ticksNeeded = 0; | 94 | int ticksNeeded = 0; |
95 | Timer gradualTickTimer = {100}; | 95 | Timer gradualTickTimer = {100}; |
96 | 96 | ||
97 | int player_x = 0; | 97 | int player_x = CHUNK_WIDTH/2; |
98 | int player_y = 0; | 98 | int player_y = CHUNK_HEIGHT/2; |
99 | int player_oldx = 0; | 99 | int player_oldx = player_x; |
100 | int player_oldy = 0; | 100 | int player_oldy = player_y; |
101 | bool renderPlayer = true; | 101 | bool renderPlayer = true; |
102 | Animation playerAnim {Runtime::getResourcePath("player_anim.txt")}; | 102 | Animation playerAnim {Runtime::getResourcePath("player_anim.txt")}; |
103 | 103 | ||