sinus speed is displaying frames of the animation now

This commit is contained in:
Filipriec
2025-11-15 22:07:15 +01:00
parent 2753aed573
commit de6facff03
4 changed files with 13 additions and 8 deletions

View File

@@ -33,7 +33,7 @@ void render_loop(int speed) {
bool need_redraw = false;
int tick_counter = 0;
int player_speed = 3;
int player_speed = 4;
while (true) {
tick_counter++;
@@ -66,9 +66,7 @@ void render_loop(int speed) {
if (player_state.get_state() != PlayerState::Crawl) {
int step = timing.frame_advance_for(player_speed, tick_counter);
if (step > 0)
player_state.toggle_walk_frame(step);
player_state.toggle_walk_frame(player_speed, tick_counter);
}
ThisThread::sleep_for(50ms);