This 42 School project, originally named 'so_long', is a small 2D Bomberman-style game created using minilibx, a graphics library used at 42. The game features textures, sprites, and tile-based design.
Timeline.11_.mov
In this game, the player’s goal is to:
- Collect all bombs (collectibles) scattered across the map.
- Escape through the revealed pipe (exit) with the fewest possible moves.
- The current movement count updates dynamically on the game window.
- Enemy patrols: Coming into contact with an enemy results in game over.
- Collectibles include:
make
./bomberman [map] # Example: ./bomberman maps/map_large.ber
Key (QWERTY) | Key (AZERTY) | Action |
---|---|---|
W |
Z |
Move Up |
S |
S |
Move Down |
A |
Q |
Move Left |
D |
D |
Move Right |
B |
B |
Set Bomb |
ESC |
ESC |
Quit Game |
The game requires a valid .ber map file as input. The map consists of the following 6 characters:
Character | Meaning | Icon |
---|---|---|
0 |
Empty space | ![]() |
1 |
Wall | ![]() |
C |
Collectibles | ![]() ![]() ![]() |
E |
Map exit | ![]() |
P |
Player's starting position | ![]() |
M |
Enemy's starting position | ![]() |
1111111111111
10010000000C1
1000011111001
1P0011E000001
1111111111111
- Must be surrounded by walls (
1
). - Must contain at least:
- One exit (
E
). - One collectible (
C
). - One starting position (
P
).
- One exit (
- Must be rectangular.