SDL2 tutorials updated with cmake Sat, 13th August 2022All the tutorials have now been updated to use cmake, to help make compiling them on different platforms a bit easier. So, when compiling the code, one would now use: cmake CMakeLists.txt, followed by make or mkdir build The latter will result in a tidier build, with all the cmake-related gubbins being stored in the build directory. The binary itself will be created alongside the CMakeLists.txt file, and also relative to the assets. IDEs such as VSCode also have support for cmake, and should produce the binaries in the expected manner. The code itself has also been reformatted and styled, although this won't have any impact on the tutorial pages themselves; the logic in the functions remains identical. The new archives have been uploaded to both itch.io and our own site. Related News
SDL2 Versus game tutorial
Download keys for SDL2 tutorials on itch.io
SDL2 Santa game tutorial 🎅
SDL2 Shooter 3 tutorial
SDL2 map editor tutorial [UPDATED]
| |
Desktop site |