This project is a very small 2D game. Its purpose is to make you work with textures, sprites, and some other very basic gameplay elements.
- ???
- gcc
- make
- MacOS Dependencies:
- OpenGL
- Linux Dependencies:
- X11 include files (package xorg)
- XShm extension must be present (package libxext-dev)
- Utility functions from BSD systems - development files (package libbsd-dev)
Step 1. Install this repository
git clone https://github.com/naviisml/so_long.git
Step 2. Add the submodules
git submodule init
git submodule update
Step 1. Installing the dependencies
sudo apt-get install gcc make xorg libxext-dev libbsd-dev
Step 2. Install this repository
git clone https://github.com/naviisml/so_long.git
Step 3. Add the submodules
git submodule init
git submodule update
make all
./so_long <path/to/map.ber>
make all -f Makefile.linux
./so_long <path/to/map.ber>
The maps used for this game must be made with the following rules in mind;
- Map must be rectangular
- Map must contain one exit
- Map must contain one collectible
- Map must contain one starting position
- Map must be surrounded by walls
- Map can be composed of only these 5 characters:
0
for an empty space1
for a wallC
for a collectibleE
for a map exitP
for the player’s starting position
Simple example
1111111111111
10010000000C1
1000011111001
1P0011E000001
1111111111111
Score: 100/100
Date: 06-02-2022
Made with tons of ☕ and ❤️ by Navi