From 6da9be5810bf82e9d0b3b2a8bce7606ef2e2bf93 Mon Sep 17 00:00:00 2001 From: fschildt Date: Tue, 20 Jan 2026 01:22:45 +0100 Subject: breakout: delete pong, add breakout --- src/games/Game.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/games/Game.cpp') 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(); } break; - case pong: { - return std::make_unique(); + case breakout: { + return std::make_unique(); } break; InvalidDefaultCase; @@ -80,7 +80,7 @@ Game::Update(std::vector& 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; -- cgit v1.2.3