Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of el17ajf by
Diff: Game/Game.cpp
- Revision:
- 18:24ce897024d0
- Parent:
- 17:cc448ab7266f
- Child:
- 19:370d83a8dc33
--- a/Game/Game.cpp Wed Apr 03 13:37:56 2019 +0000 +++ b/Game/Game.cpp Wed Apr 03 14:31:49 2019 +0000 @@ -1,14 +1,8 @@ #include "Game.h" #include "Input.h" +#include "Engine.h" #include "Menus.h" -/* BUGS: - * - * SWITCH BOUNCE - * NO DOUBLE ROW CLEAR - * - */ - Game::Game(Difficulty difficulty) { currentTetromino = Tetromino::getTetrominoOfType( Tetromino::getRandomTetrominoType()); @@ -16,13 +10,13 @@ switch (difficulty) { case EASY: - move_frames = 8; + move_frames = Engine::FPS / 6; // ~ 160ms break; case MEDIUM: - move_frames = 6; + move_frames = Engine::FPS / 9; // ~ 110ms break; case HARD: - move_frames = 3; + move_frames = Engine::FPS / 12; // ~ 80ms break; }