Skip to content

il94/42_so_long

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

This is a 42 School project. It consists in creating a little 2D game with the MiniLibX, the school's graphic library.

The game

The purpose of the game is to obtain every collectible of the level, while avoiding ennemy attacks. You can beat the ennemies either by jumping on them or by hitting them with your hammer lost in the map. The tiniest contact can loose you the game, so be careful !

Commands

W
Move up
A
Move left
S
Move down
D
Move right
SPACE
Hammer blow (bottom excluded)
SPACE+S
Jump
TAB
Display step counter
ESC
Close game

Installation

sudo apt-get install xorg libxext-dev zlib1g-dev libbsd-dev
sudo apt-get install vlc
git clone https://github.com/il94/42_so_long so_long
cd so_long && make -j

Running game

./so_long [MAP.ber]

A map set is provided in the "maps" folder. I challenge you to complete my levels (the world 4 in particular :) ).

Map composition

Valid Characters

CharacterElement
0Grass
1Wall
CCollectible
EExit
PStarting position
MEnemy
HHammer

Map example



111111111
111000111
1PH0C00E1
1110M0111
111111111


Content .ber file

Render in game

To be valid, a map must meet the following conditions :

  • being rectangular
  • being surrounded by walls
  • containing only one starting position
  • containing only one exit
  • containing at least one collectible
  • containing a maximum of one hammer
  • being composed only by valid characters
  • the file containing map must be .ber

By respecting the above conditions, you can create your own maps !

Informations

Being free to choose my own sprites, I used the ones from games I grew up with, namely the Mario license from the 90s and 2000s, and especially here Paper Mario 64. The same goes for sounds, added as a bonus, and the Easter eggs that can be found in the different levels. With it being my first game as well as my first graphical project, it seemed natural to me to make it a tribute to the ones that made me love the world of video games and gave me the desire to create some of my own.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published