Commit Graph

20 Commits

Author SHA1 Message Date
970259e3d6 used tileset sprite sheet for asteroids 2025-12-20 13:50:56 +01:00
a520de6c1f Added hold block and minor fixes 2025-12-20 11:10:23 +01:00
9d989ab395 new next block 2025-12-07 19:02:03 +01:00
2b4b07ae6a fixed statistics 2025-12-07 17:30:18 +01:00
ec9eb45cc3 gameplay score board 2025-12-06 21:07:17 +01:00
12110bd8b4 fixed 2025-12-06 17:51:54 +01:00
b44de25113 latest state 2025-12-06 09:43:33 +01:00
383b2e48ec new background for main screen 2025-12-01 20:52:26 +01:00
55c40f0516 added helper menu 2025-11-30 13:30:02 +01:00
332e2efb74 fade effect when switching states 2025-11-29 19:23:41 +01:00
5bf87f2c21 upodate game start and blur on pause 2025-11-23 09:40:00 +01:00
3c3a85d6d4 Fade from main menu to gameplay 2025-11-22 20:18:00 +01:00
4e69ed9742 added buttons to main state 2025-11-22 12:16:47 +01:00
a257c5cd79 fixed keybord selection for quit game play 2025-11-22 11:14:55 +01:00
b5ef9172b3 some problems fixed 2025-08-17 21:13:58 +02:00
0e0519b0e9 Created LevelSelectorState
- code removed from main.cpp and added into a new class
2025-08-17 09:10:49 +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