A mining game where you need to explore caves and mine to collect gold treasure.
Made for the intake assignement of the Breda University of Aplied Science with the theme "collect"
-
Download a release build for linux or windows in the releases tab
-
Run the binary/executable file and start playing the game
Note: Some windows 10 systems falsely flag the game as a virus if this is the case I would suggest building the project yourself using the instructions below
-
Install the latest visual studio community and the desktop development with C++ module
-
Download the project folder or use git clone from the terminal (do not use the visual studio git clone it opens the project in a weard way)
git clone https://github.com/twenmod/portfoliogame
-
Open the project folder with visual studio
-
Generate the cmake cache by clicking on
project>configure cache
from the topbar -
Built the game (ctrl+b)
-
Clone the repo
git clone https://github.com/twenmod/portfoliogame
-
Go into the project folder
-
Built the cmake cache using
cmake .
Note the project files only include the libraries for 64 bit systems -
Built the project using
cmake --build . --config Release
-
Clone the repo
git clone https://github.com/twenmod/portfoliogame
-
Make sure you have the dependencies installed by running
sudo apt install cmake libsfml-dev libjsoncpp-dev gcc
or downloading it from the aur on arch
-
Build the game by running the "C/C++: g++ build the game" task from vscode or running
g++ -g src/*.cpp -I ./src -o ./out/build/gcc/Spelunker -L /usr/lib -I /usr/include -l sfml-graphics -l sfml-window -l sfml-system -l sfml-audio -l sfml-network -l jsoncpp -std=c++17
from within the source folder -
Copy the assets folder from the source directory to the game directory
If you want to change some more advanced settings there is a settings.json file in the assets folder In here you can change things like worldseed, worldsize and even more.
If you want a reference to what the values do use the json file from the project folder instead of the release.
- Use [A] and [D] to walk around
- Use [Space] or [W] to jump
- Use [1][2][3] To select your weapon/tool
- Use [UP][LEFT][DOWN][RIGHT] to attack around you (note not all weapons can attack in all directions)
- Press [E] to interact (with doors)
- Press [ESC] to return to the main menu (lose progress)
- Your objective is to collect as much gold as possible
- Collect gold by mining ore
- Get to the exit door alive
- Do not die
- SFML
- JsonCPP
- SFMLMath by Denis Wagner
- Perlinnoise generator by Ryo Suzuki
- Footsteps sound from GboxMikeFozzy on opengameart.opengameart
- Explosion sound from opengameart
- Player sprite made from a template
- Font from google fonts
All other scripts and assets are made by me
- The physics of objects (not player) are not accurate enough when <30 fps
- The rope tool doesn't work at the spawn chunks
- Sometimes the player falls down when the level just loaded in.
- There is a small chance the rendering fails, you can fix this by restarting the program.