I've coded my first 2D computer game called berry-princess-game. A princess collects strawberries. After she has collected them all, she has to return to her castle. This retro-style game reminds me to my childhood. It is written in C and utilizes the MLX42 library for its graphical interface. Feel free to explore the code and give it a try!
Use the following controls to play the game:
- Arrow keys or WASD: Move the princess
- Escape: Exit the game
👀 YouTube Video: Code-Princess/Mein erstes selbst programmiertes 2D Computer Spiel/Berry-Princess-Game/Retro-Style🍓👸
Please note that this program is only compatible with Linux or macOS. Ensure that you have a C-compiler e.g. cc installed on your operating system.
To install the project follow these steps in your terminal:
git clone git@github.com:Code-Princess/berry-princess-game.git
cd berry-princess-game
make
To run the game, use this command in your terminal:
./so_long maps/map_04.ber
You can replace maps/map_04.ber with the path to your desired map file.