e1921858ed7ea12d30abba94358617a5ca75a269
Spacetris SDL3
A native C++20 SDL3-based Tetris-style game.
Quick Start (Windows)
- Install vcpkg and packages:
vcpkg install sdl3 sdl3-ttf --triplet=x64-windows - Configure:
cmake -S . -B build-msvc -DCMAKE_BUILD_TYPE=Debug - Build:
cmake --build build-msvc --config Debug - Run (helper):
. build-debug-and-run.ps1or runbuild-msvc\Debug\spacetris.exe
Production Packaging
- Quick package (uses existing build):
. package-quick.ps1 - Full production (clean Release build + package):
. build-production.ps1 -Clean
Tests
- Unit tests target:
spacetris_tests→ exespacetris_tests.exe - Run tests: configure+build then
ctest -C Debugor run the test exe directly
Where to look
- Main app sources:
src/(entrysrc/main.cpp, appsrc/app) - Build control:
CMakeLists.txtandcmake/ProductionBuild.cmake - Packaging helpers:
build-production.ps1,package-quick.ps1
Notes
- The canonical executable name is
spacetris(spacetris.exeon Windows). - Assets live in
assets/and are copied into the distribution package.
If you want, I can:
- Run a Debug build and confirm the test executable name,
- Replace remaining legacy "tetris" tokens across generated files and docs.
Description
Languages
C++
95.1%
PowerShell
1.9%
Shell
1.3%
CMake
1.2%
Batchfile
0.4%