mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:47:36 +00:00
Snake: Clear the movement queue on game reset.
This commit is contained in:
parent
b41e95b578
commit
09c087177c
2 changed files with 7 additions and 0 deletions
|
@ -19,6 +19,7 @@ void SnakeGame::reset()
|
|||
m_head = { m_rows / 2, m_columns / 2 };
|
||||
m_tail.clear_with_capacity();
|
||||
m_length = 2;
|
||||
m_velocity_queue.clear();
|
||||
stop_timer();
|
||||
start_timer(120);
|
||||
spawn_fruit();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue