serenity/Userland/Games/Pong
Martin Frederic 3e6c083754 Pong: Explicitly clear held keys in Game::reset()
The paddle's movement is determined by the currently held keys. A key
is no longer considered held when a matching keyup_event() fires.
However, the event does not fire when the timer has stopped (e.g. due to
a game over condition), which can result in the paddle keeping its
former direction and moving on its own -- even after the player started
a new game. Therefore, any held keys will be cleared explicitly.
2022-04-15 00:13:09 +02:00
..
CMakeLists.txt Pong: Add link to help pages in menu 2022-01-13 03:45:17 -08:00
Game.cpp Pong: Explicitly clear held keys in Game::reset() 2022-04-15 00:13:09 +02:00
Game.h Pong: Explicitly clear held keys in Game::reset() 2022-04-15 00:13:09 +02:00
main.cpp Pong: Add 'New Game' action 2022-04-15 00:13:09 +02:00