Skip to content

Building a simple block shooter game with C and the graphic library SDL2.

License

Notifications You must be signed in to change notification settings

CrystlBearer/block-shooters

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

block-shooters

This is a simple shooter with blocks.

Menu

Game


Setting up Linkers for SDL

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
SDL Development Library

Download SDL2's TTF development library here: SDL2 TTF
SDL2 TTF Development Library

Download SDL2's image development library here: SDL2 Image SDL2 Image Development Library


Setup

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).


Steps to set up linkers

  1. After downloading all the development libraries go to Project > Properties... and a configuration menu should appear.
  2. Go to the C/C++ tab and click on General. Inside that tab go to Additional Include Directories and add the paths to the library's [SDL2s Library Name]/include folder. Press okay. SDL 2 Development Includes Config
  3. Go to the Linker tab and click on General. Inside the tab go to Additional 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.
    SDL 2 Development Library Config
  4. Then, continuing in the Linker tab, click on the Input tab. Inside it go to Addtional Dependencies and type the file names within each of the libraries. Add all the files with .lib extension. Press okay. SDL 2 Development Lib Config
  5. At the bottom of the configuation menu, press apply and okay.
  6. From each of the libaries, drag the .dll files into the Game project folder where all the C source files and header files are.

Resources

Refer to this site for tutorial: Lazy Foo
Here is the documentation for SDL2 Library: SDL2 Wiki

About

Building a simple block shooter game with C and the graphic library SDL2.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published