An opportunity to do more with C++ by creating a game with SDL2. gotta love that low level code
(I have not yet experienced the p̷̜͈̞̻̪͑̀̓͋͝ã̸͓̯̗̲̮͒i̸̥̣̮̠̔̓̀̓͗ṅ̷͙̗̮̹ of writing a physics engine from scratch)
Note
Some IDEs like CLion can import the project using the included CMakeLists.txt
file.
brew install sdl2
— Install libraries with Homebrew.ln -s /opt/homebrew/Cellar/sdl2/2.28.4 ./include/sdl2
— Link the SDL2 headers to the project.
Important
You may need to modify the path to /usr/local/bin/brew
if you are on an Intel Mac.
Coming Soon™️
Assuming you have cmake ready, just download the sdl2 dependencies:
# Make sure to `sudo apt update` first! Then install SDL2 dependencies:
sudo apt install libsdl2-dev
yum install SDL2-devel
Download the source zip from the latest SDL release.
Then extract and build.
cd <sdl folder>
# Configure the install
./configure
# Compile and install with make
make all
make install
Sounds like a skill issue ;) Have fun debugging!