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:
- 29:d59fbe128d1f
- Parent:
- 28:e09b7ac11dea
- Child:
- 31:69fedaa9b171
--- a/Game/Game.cpp Fri Apr 12 20:53:00 2019 +0000 +++ b/Game/Game.cpp Sat Apr 13 08:33:49 2019 +0000 @@ -106,7 +106,7 @@ currentTetromino = currentTetromino.movedDown(); } moveCurrentTetrominoDown(); - Graphics::Game::shake(3); + Graphics::Game::shake(0, 3); } void Game::draw() { @@ -115,15 +115,9 @@ } void Game::gameOver() { - printf("Player %i finished game with %i points\n", playerNumber, score); Prefs::getInstance()->setKey(Prefs::LAST_PLAYER, playerNumber); Prefs::getInstance()->setKey(Prefs::LAST_SCORE, score); - Prefs::getInstance()->printAll(); - printf("WRITTEN DATA TO WHATEVER THING\n"); - printf("UPDATING LEADERBOARD\n"); updateLeaderboard(); - Prefs::getInstance()->printAll(); - printf("DONE UPDATING LEADERBOARD\n"); Menus::MenuManager::add(new Menus::GameOverMenu()); }