mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-20 00:12:20 +00:00
3e6c083754
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. |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
Game.cpp | ||
Game.h | ||
main.cpp |