A lightweight 2D game framework built in C using SDL2. Perfect for rapid prototyping with real-time input handling and pixel-based rendering.
- Draw shapes: rectangles, circles, lines.
- Keyboard & Mouse input support.
- Real-time FPS counter in the window title.
- Custom rendering with pixel-level control.
R
: Draw a red rectangle.C
: Draw a green circle.L
: Draw a blue line.Esc
: Quit.
- Install SDL2.
- Use CMake to build the project:
mkdir build cd build cmake .. make
- Run the executable:
./Main