proper positioning works now
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user