sinus speed is displaying frames of the animation now
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user