diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2022-03-21 13:42:51 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2022-03-21 13:42:51 -0400 |
commit | dfae5ac251994a3f25f7473197f716148374e7ca (patch) | |
tree | ecebfac41873c0392f08c18f03013f966a5d9ce7 /src/game.h | |
parent | 9b7e38746fd8fd645f5c766dab78fe331ebea47d (diff) | |
download | ether-dfae5ac251994a3f25f7473197f716148374e7ca.tar.gz ether-dfae5ac251994a3f25f7473197f716148374e7ca.tar.bz2 ether-dfae5ac251994a3f25f7473197f716148374e7ca.zip |
player starts in the middle of first chunk now
Diffstat (limited to 'src/game.h')
-rw-r--r-- | src/game.h | 8 |
1 files changed, 4 insertions, 4 deletions
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 | ||