refactor main game loop

This commit is contained in:
2025-12-19 20:07:48 +01:00
parent 783c12790d
commit 38dbc17ace
6 changed files with 1761 additions and 1948 deletions

View File

@ -31,6 +31,7 @@ find_package(nlohmann_json CONFIG REQUIRED)
set(TETRIS_SOURCES
src/main.cpp
src/app/TetrisApp.cpp
src/gameplay/core/Game.cpp
src/core/GravityManager.cpp
src/core/state/StateManager.cpp
@ -67,6 +68,7 @@ set(TETRIS_SOURCES
src/states/PlayingState.cpp
)
if(APPLE)
set(APP_ICON "${CMAKE_SOURCE_DIR}/assets/favicon/AppIcon.icns")
if(EXISTS "${APP_ICON}")