Skip to content

SoLong is a project that aims to create a simple 2D game using the minilibx library

Notifications You must be signed in to change notification settings

abouabra/42-SoLong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SoLong

Description

SoLong is a project that aims to create a simple 2D game using the minilibx library. The game is a simple maze where the player has to collect all the collectibles and reach the exit to win the game. it also includes a simple enemy that moves randomly and kills the player if it touches him.

Note:

The project was developed and tested on a macOS system, and it may not work on other operating systems.

Installation

  1. Clone the repository:
git clone https://github.com/abouabra/42-SoLong.git
  1. Change the current working directory:
cd 42-SoLong
  1. Compile the project:
make

Usage

The game can be run using the following command:

./so_long maps/map.ber

The game can be closed by pressing the 'esc' key or by clicking the red cross on the window.

Map

The map is a simple text file with the following characters:

Character Description
1 Wall
0 Empty space
P Player
E Exit
C Collectible

The map should also be surrounded by walls and should only contain valid characters.

Controls

The player can move using the WASD keys.

Screenshots

Main Menu Skin Selection levels menu
Screenshot 1 Screenshot 2 Screenshot 3

Level 2

Screenshot 1

Level 5

Screenshot 2

Level 8

Screenshot 3

Final Note

If you have any suggestions or improvements, feel free to open an issue or submit a pull request.

About

SoLong is a project that aims to create a simple 2D game using the minilibx library

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published