The easiest way to compile this project on macOS is with [Homebrew] and [CMake].
- [Install Homebrew] if you have not already.
- Install CMake, [SDL2], [SDL2_ttf], and [OpenSSL] with Homebrew:
brew install cmake sdl2 sdl2_ttf openssl
- Download this repository and
cd
into it. - Run CMake:
cmake -S . -B build && cmake --build build
- Run the executable in
bin
:./bin/main
You control the yellow square. Use the W, A, S, and D keys to go up, left, down, and right, respectively. Red squares are fruit. You can eat fruit by moving over them. They don't do anything... sadly. But we got bombs! Press the spacebar to throw a bomb that explodes when it hits a wall. An FPS counter in the top-right corner tells you how the game is performing on your system. Framerate is capped at 60 fps for visual fidelity.
Reach the highest level you can!