A 2D Minecraft based mini game developed with C++ and SFML without a game engine.
Link to Medium article: here
You spawn in a 2D world as Steve. You must collect resources and avoid hostile mobs. The aim of the game is to collect 5 emeralds. You must level up your weapons and swords to be able to collect new items. Collect 5 emeralds as quick as you can, you are being timed!
- Install CMake: https://cmake.org/download/
- Clone this repo (make sure you have the latest version)
- Open repo in your terminal
- Make a new directory 'build':
mkdir build
- cd into this directory:
cd build
- Run
cmake ..
- Wait for this to finish and then run:
make
- Finally, to play Minecraft2D mini game, run
./MinecraftClone
- To move, use A and D keys to move left and right.
- Press space to jump.
- To open crafting screen, press I key.
- Use number keys 1 to 8 to select hotbar slots.
- To discard of an item in your hotbar, press C key to remove 1, press X key to discard the entire slot.