Skip to content

A lightweight 2D game framework built in C using SDL2. Perfect for rapid prototyping with real-time input handling and pixel-based rendering.

License

Notifications You must be signed in to change notification settings

ItsM3U/SDL2-Game-Framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SDL2 Game Framework

A lightweight 2D game framework built in C using SDL2. Perfect for rapid prototyping with real-time input handling and pixel-based rendering.

Framework Screenshot

Features

  • Draw shapes: rectangles, circles, lines.
  • Keyboard & Mouse input support.
  • Real-time FPS counter in the window title.
  • Custom rendering with pixel-level control.

Controls

  • R: Draw a red rectangle.
  • C: Draw a green circle.
  • L: Draw a blue line.
  • Esc: Quit.

Build and Run

  1. Install SDL2.
  2. Use CMake to build the project:
    mkdir build
    cd build
    cmake ..
    make
  3. Run the executable:
    ./Main

About

A lightweight 2D game framework built in C using SDL2. Perfect for rapid prototyping with real-time input handling and pixel-based rendering.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published