Commit Graph

14 Commits

Author SHA1 Message Date
5f438add45 Phase 2: Core Systems: Input Management done 2025-08-17 10:32:53 +02:00
36f849ba36 Refactored step 1: Core Architecture Setup 2025-08-17 10:22:21 +02:00
2e4a981254 plan for refactoring 2025-08-17 10:07:34 +02:00
70e4b4e89f fixed position 2025-08-17 09:59:08 +02:00
bc3f69e9d6 Fixed selected level state 2025-08-17 09:44:23 +02:00
0e0519b0e9 Created LevelSelectorState
- code removed from main.cpp and added into a new class
2025-08-17 09:10:49 +02:00
eddd1a24b2 fixed level selector 2025-08-16 21:58:19 +02:00
5ca03fb689 fixed key binding 2025-08-16 21:15:05 +02:00
6f9ce04708 Merge branch 'feature/FixingGameplayKeys' into develop 2025-08-16 19:40:49 +02:00
5c6bc1b260 compile and run script 2025-08-16 19:40:41 +02:00
6d4f3c54ed Add exit-confirm modal (fullscreen dim, centered P2 text) and keyboard shortcuts
Add an in-game exit confirmation modal for Playing state: ESC opens modal and pauses the game; YES resets and returns to Menu; NO hides modal and resumes.
Draw a full-window translucent dim background (reset viewport) so overlay covers any window size / fullscreen.
Use PressStart2P (pixel P2) font for all modal text and center title/body/button labels using measured text widths.
Add FontAtlas::measure(...) to accurately measure text sizes (used for proper centering).
Ensure popup rendering and mouse hit-testing use the same logical/content-local coordinate math so visuals and clicks align.
Add keyboard shortcuts for modal (Enter = confirm, Esc = cancel) and suppress other gameplay input while modal is active.
Add helper scripts for debug build+run: build-debug-and-run.ps1 and build-debug-and-run.bat.
Minor fixes to related rendering & state wiring; verified Debug build completes and modal behavior in runtime.
2025-08-16 19:40:23 +02:00
2afaea7fd3 Updated game structure
Some checks failed
Build and Package Tetris / build-windows (push) Has been cancelled
Build and Package Tetris / build-linux (push) Has been cancelled
2025-08-16 12:10:19 +02:00
71648fbaeb Updated game speed 2025-08-16 08:24:26 +02:00
d161b2c550 Initial release: SDL Windows Tetris 2025-08-15 11:01:48 +02:00