From e62fd87d463e877e93701801095f9882956d165d Mon Sep 17 00:00:00 2001 From: fschildt Date: Tue, 20 Jan 2026 22:05:26 +0100 Subject: breakout: add collision between paddle and ball --- src/games/breakout/Breakout.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/games/breakout/Breakout.hpp') diff --git a/src/games/breakout/Breakout.hpp b/src/games/breakout/Breakout.hpp index 2b7c9b3..60cd648 100644 --- a/src/games/breakout/Breakout.hpp +++ b/src/games/breakout/Breakout.hpp @@ -22,8 +22,10 @@ class Breakout : public Game { static constexpr uint32_t BRICK_ROWS = 8; static constexpr uint32_t BRICK_COLS = 14; - static constexpr float PADDLE_HEIGHT = 0.1f; + static constexpr float BALL_SPEED = 2.0f; + static constexpr float PADDLE_WIDTH = 0.6f; + static constexpr float PADDLE_HEIGHT = 0.1f; static constexpr float PADDLE_SPEED = 1.0f; -- cgit v1.2.3