Skip to content

Single file SDL2 boilerplate that moves a sprite around using the keyboard

Notifications You must be signed in to change notification settings

andrew-lim/sdl2-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

SDL2 C++ Boilerplate

This is a simple SDL2 example that allows a user to move a sprite using arrow keys. This is meant to be used as a convenient single-file starting point for more complex projects.

Here is a screenshot of what the program looks like when it runs:

Building Windows MinGW/Codeblocks

Linker settings (in Code::Blocks under Project->Build Options...)

-lmingw32 -lSDL2main -lSDL2

Building Mac XCode

Download the SDL2 DMG file and add the SDL2.framework into your Linker settings

https://www.libsdl.org/release/SDL2-2.0.10.dmg

About

Single file SDL2 boilerplate that moves a sprite around using the keyboard

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages