ArkhamKnightXD / sdl-breakout

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

C-SDL2-Setup

SDL2 along with SDL_ttf, SDL_image, and SDL_mixer are all you need to create a simple game in C++. This project template includes boilerplate code, and the basic project setup.

Requirements

g++ must be installed on your computer, to learn how to get the right version on windows, you can just watch CoderGophers Tutorial mingw32 or make will hopefully come with g++, so make sure to do that. Visual Studio Code should be installed on your computer.

Building

Debug Mode

To build this project in debug with all the errors showing, enter these commands:

cd bin/debug
make

or

cd bin/debug &&
mingw32-make

to build the project in debug mode.

Release Mode

Sadly, the faster means more dangerous, since release mode doesn't have any -Wall flags, your project can exceed your memory and shut down your computer. Make sure to test in debug mode first.

To build this project:

cd bin/release
make

or

cd bin/release
mingw32-make

to build the project in the fastest mode to have optimizations.

Credits

Thanks to PolyMars for some of the build code. Thanks to CoderGopher for most of the inspiration.

About


Languages

Language:C 97.1%Language:C++ 1.6%Language:CMake 0.8%Language:Objective-C 0.4%Language:Shell 0.1%Language:Makefile 0.0%