proper positioning works now

This commit is contained in:
Priec
2025-11-14 18:50:57 +01:00
parent cda395d6b9
commit 9170524d33
4 changed files with 10 additions and 12 deletions

View File

@@ -16,8 +16,8 @@ constexpr size_t BUFFER_SIZE = 64;
constexpr auto CRAWL_DURATION = 300ms;
constexpr auto ANIMATION_TICK = 170ms;
constexpr auto MESSAGE_DISPLAY_DURATION = 1s;
constexpr int PLAYER_X = 18;
constexpr int PLAYER_Y = 13;
constexpr int PLAYER_X = 9;
constexpr int PLAYER_Y = 6;
enum class PlayerState { Walk1, Walk2, Crawl1 };
@@ -129,7 +129,7 @@ void render_loop(int speed) {
anim_timer.start();
int shift = 0;
PlayerPosition pos = {9, 9};
PlayerPosition pos = {PLAYER_X, PLAYER_Y};
const char *bg_file = "background_dark_inverted.txt";
bool need_redraw = false;