Tiny cross-platform (Linux/Windows) SDL2 app that opens a viewport with a randomly-colored gradient background and an in-engine cursor/pixel that you can move with keyboard and mouse.
- Select mode on launch: click
2Dor3D - Move cursor:
WASDor Arrow Keys, plus mouse motion - Active state: hold
Spaceor hold Left Mouse Button - Interact with icons: tap
Space/ Left Mouse near an icon to toggle its state - Toggle mouse capture (relative mouse):
M - Restart (timer + respawn icons):
R - Quit:
Esc/ window close
- 2D: circles + diamonds in a flat viewport.
- 3D: flat-shaded polyhedra inside a semi-transparent bounding box.
- You have 90 seconds.
- When time reaches 0 (or when all icons are toggled to the 2nd state), the run ends and
FINAL SCORE: <n>is shown. - Score = sum of toggled icons: circles/spheres = 100 points, diamonds/octahedra = 150 points (1.5x).
Install SDL2 development headers (example for Debian/Ubuntu):
sudo apt-get install libsdl2-devBuild:
cmake -S . -B build
cmake --build build -j
./build/rendermeRecommended via vcpkg:
vcpkg install sdl2
cmake -S . -B build -DCMAKE_TOOLCHAIN_FILE=C:\path\to\vcpkg\scripts\buildsystems\vcpkg.cmake
cmake --build build --config Release
.\build\Release\renderme.exeTip: start without mouse capture using --no-capture.