Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

RenderMe Cursor Framework (C++ / SDL2)

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.

Controls

  • Select mode on launch: click 2D or 3D
  • Move cursor: WASD or Arrow Keys, plus mouse motion
  • Active state: hold Space or 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

Modes

  • 2D: circles + diamonds in a flat viewport.
  • 3D: flat-shaded polyhedra inside a semi-transparent bounding box.

Scoring

  • 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).

Build (Linux)

Install SDL2 development headers (example for Debian/Ubuntu):

sudo apt-get install libsdl2-dev

Build:

cmake -S . -B build
cmake --build build -j
./build/renderme

Build (Windows)

Recommended 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.exe

Tip: start without mouse capture using --no-capture.

About

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.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages