diff options
| author | fschildt <florian.schildt@protonmail.com> | 2026-01-20 22:05:26 +0100 |
|---|---|---|
| committer | fschildt <florian.schildt@protonmail.com> | 2026-01-20 22:05:26 +0100 |
| commit | e62fd87d463e877e93701801095f9882956d165d (patch) | |
| tree | 286b4646b5772b5756511c93a75f0e6dadf19fbd /src/games/breakout/Breakout.hpp | |
| parent | 028fdb5b30befb1200f9f6ea8e8e247dc7bed50a (diff) | |
breakout: add collision between paddle and ball
Diffstat (limited to 'src/games/breakout/Breakout.hpp')
| -rw-r--r-- | src/games/breakout/Breakout.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
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; |
