/sdl-vscode-template

C++ VSCode boilerplate for game dev using SDL2

Primary LanguageC++MIT LicenseMIT

SDL C++ VS Code boilerplate

Only tested on MacOS so far -- might work on windows with MinGW

The VSCode accent bar is even themed to match the SDL logo!

Setup

Install SDL2 and SDL2-image using brew, ie

brew install sdl2 sdl2-image

Make sure project is set to correct OS in bottom right

Run

Press cmd + shift + b to build

Downloads

SDL2

https://www.libsdl.org/download-2.0.php

SDL_image2

https://www.libsdl.org/projects/SDL_image/

MinGW (for Windows)

https://sourceforge.net/projects/mingw-w64/files/latest/download

References

VScode+SDL2 configuration tutorial

https://programmer.help/blogs/vscode-sdl2-configuration-tutorial.html

How To Make A Game In C++ & SDL2 From Scratch!

https://www.youtube.com/playlist?list=PLhfAbcv9cehhkG7ZQK0nfIGJC_C-wSLrx

Lazy Foo's Beginning Game Programming v2.0

http://lazyfoo.net/tutorials/SDL/index.php

Cplusplus-SDL2-Starter-For-Game-Development

https://github.com/ninap41/Cplusplus-SDL2-Starter-For-Game-Development