mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:27:35 +00:00
Snake: Move geometry types into Geometry.h and add Direction enum
This commit is contained in:
parent
3ce87ea5f9
commit
da7c883dfa
3 changed files with 54 additions and 16 deletions
|
@ -290,7 +290,7 @@ void Game::queue_velocity(int v, int h)
|
|||
m_velocity_queue.enqueue({ v, h });
|
||||
}
|
||||
|
||||
Game::Velocity const& Game::last_velocity() const
|
||||
Velocity const& Game::last_velocity() const
|
||||
{
|
||||
if (!m_velocity_queue.is_empty())
|
||||
return m_velocity_queue.last();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue