diff options
| author | fschildt <florian.schildt@protonmail.com> | 2026-01-20 01:22:45 +0100 |
|---|---|---|
| committer | fschildt <florian.schildt@protonmail.com> | 2026-01-20 01:59:19 +0100 |
| commit | 6da9be5810bf82e9d0b3b2a8bce7606ef2e2bf93 (patch) | |
| tree | 28bb67ad879f8bbb36476a537fe8b69195500146 /src/games/Game.cpp | |
| parent | f463853872210415e06fb3f863325fdba303ab65 (diff) | |
breakout: delete pong, add breakout
Diffstat (limited to 'src/games/Game.cpp')
| -rw-r--r-- | src/games/Game.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/games/Game.cpp b/src/games/Game.cpp index 1e94df6..dc3a5a2 100644 --- a/src/games/Game.cpp +++ b/src/games/Game.cpp @@ -2,7 +2,7 @@ #include "games/tetris/Tetris.hpp" #include "games/snake/Snake.hpp" #include "games/minesweeper/Minesweeper.hpp" -#include "games/pong/Pong.hpp" +#include "games/breakout/Breakout.hpp" #include "common/defs.hpp" #include "renderer/Renderer.hpp" @@ -30,8 +30,8 @@ Game::Select(GameType type) return std::make_unique<Tetris>(); } break; - case pong: { - return std::make_unique<Pong>(); + case breakout: { + return std::make_unique<Breakout>(); } break; InvalidDefaultCase; @@ -80,7 +80,7 @@ Game::Update(std::vector<SDL_Event>& events) bool result = true; switch (m_game_status) { case game_start: DrawGameStartMenu(); break; - case game_resume: FinishUpdate(dt); break; + case game_resume: Update(dt); break; case game_over: DrawGameOverMenu(); break; case game_pause: DrawGamePauseMenu(); break; case game_exit: result = false; break; |
