Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 1.36 KB

README.md

File metadata and controls

32 lines (25 loc) · 1.36 KB

SkyLine-Adventure

My first 2D platformer game in C++ using SDL and related libraries.

Code might not be the best, this was my first ever project in C++. Feel free to contribute improvements via Pull Requests.

The game is Speedrun oriented. The goal is to Collect all coins and get to the finish platform alive as fast as possible. There are 3 levels of difficulty and 2 cities to be played in.

Some gameplay:

SkyLineAdventureGplay5.mp4

How to play

On windows

start bin/release/main

On Linux, or WSL

./bin/release/mainLinux

How to re-compile the game

On windows with mingw

g++ -c src/*.cpp -std=c++14 -O3 -Wall -m64 -I include -I /bin/release && g++ *.o -o bin/release/main -s -L /bin/release -lmingw32 -lSDL2main -lSDL2 -lSDL2_image -lSDL2_ttf -lSDL2_mixer

On Linux, or WSL

g++ -c src/*.cpp -std=c++14 -O3 -Wall -m64 -I include -I /bin/release && g++ *.o -o bin/release/mainLinux -s -L /bin/release -lSDL2main -lSDL2 -lSDL2_image -lSDL2_ttf -lSDL2_mixer

Note: Necessary Libraries are included in bin/release. If this doesn't work for you, you may need to Download and install SDL and/or mingw