https://github.com/cppio/spritebouncesdl
A simple program using SDL in c++ as an example.
https://github.com/cppio/spritebouncesdl
cpp hello-world sdl sdl2
Last synced: 8 months ago
JSON representation
A simple program using SDL in c++ as an example.
- Host: GitHub
- URL: https://github.com/cppio/spritebouncesdl
- Owner: cppio
- License: mit
- Created: 2017-11-09T02:49:43.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-14T18:45:20.000Z (about 8 years ago)
- Last Synced: 2025-05-16T04:15:44.314Z (8 months ago)
- Topics: cpp, hello-world, sdl, sdl2
- Language: C++
- Size: 66.4 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SpriteBounceSDL
A simple program using SDL in c++ as an example.
## Usage
### macOS/Linux
Compile with `make` and run with `./SpriteBounce`
### Windows
Compile with the Visual C++ Project and run the resulting exe file.
## Getting SDL
This project uses SDL2 and SDL2_image.
Download them from https://www.libsdl.org/download-2.0.php and https://www.libsdl.org/projects/SDL_image/.
### macOS
Choose runtime binaries for macOS, and place the framework in `/Library/Frameworks`
### Linux
You will have to get SDL from your package manager e.g. `sudo apt install libsdl2-dev libsdl2-image-dev`
### Windows
Download the development libraries for Visual C++, and update the project to have the include and library directories. Also move the DLLs into the same directory as the exe.