This is a simple shooter with blocks.
Please refer to this Youtube video to set up SDL2 with Visual Studio 2017: Setting up SDL2
Download SDL2's development library here: SDL2 Library
Download SDL2's TTF development library here: SDL2 TTF
Download SDL2's image development library here: SDL2 Image
Download the all files from this repository. Open up Visual Studio 2017 and click on File > Open > Project/Solution
and select the Game.sln
file from the repository files. Visual Studio should set up the project structure for you (if the vcxproj.filters files are inside).
- After downloading all the development libraries go to
Project > Properties...
and a configuration menu should appear. - Go to the
C/C++
tab and click onGeneral
. Inside that tab go toAdditional Include Directories
and add the paths to the library's[SDL2s Library Name]/include
folder. Press okay. - Go to the
Linker
tab and click onGeneral
. Inside the tab go toAdditional Library Directories
and add the path to the folder[SDL2 Library Name]/lib/x86
or[SDL2 Library Name]/lib/x64
depending on your system. Press okay.
- Then, continuing in the
Linker
tab, click on theInput
tab. Inside it go toAddtional Dependencies
and type the file names within each of the libraries. Add all the files with.lib
extension. Press okay. - At the bottom of the configuation menu, press apply and okay.
- From each of the libaries, drag the
.dll
files into the Game project folder where all the C source files and header files are.
Refer to this site for tutorial: Lazy Foo
Here is the documentation for SDL2 Library: SDL2 Wiki