https://github.com/daisvke/bomberman
This project 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.
https://github.com/daisvke/bomberman
2d-game 42projects bomberman c ecole42 game minilibx school42 so-long
Last synced: 13 days ago
JSON representation
This project 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.
- Host: GitHub
- URL: https://github.com/daisvke/bomberman
- Owner: daisvke
- Created: 2021-07-14T16:20:47.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-02-15T13:20:24.000Z (8 months ago)
- Last Synced: 2025-06-23T04:35:30.355Z (4 months ago)
- Topics: 2d-game, 42projects, bomberman, c, ecole42, game, minilibx, school42, so-long
- Language: C
- Homepage:
- Size: 3.93 MB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bomberman
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.
https://user-images.githubusercontent.com/65622360/137594197-e525784d-8baf-49d2-9584-9888fe649215.mov
---
## Description
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.### Features:
- The **current movement count** updates dynamically on the game window.
- **Enemy patrols**: Coming into contact with an enemy results in game over.
- **Collectibles** include:
-**Speed**: Increases the player’s movement speed.
-**Bomb**: Allows the player to place an additional bomb.
-**Fire**: Boosts the power of the player’s bombs.
---
## Commands
### Run the Game
```bash
make
./bomberman [map] # Example: ./bomberman maps/map_large.ber
```### Controls
| 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 |---
## Map
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 ||
### Example of a Valid Map:
```plaintext
1111111111111
10010000000C1
1000011111001
1P0011E000001
1111111111111
```### Map Requirements:
- Must be **surrounded by walls** (`1`).
- Must contain at least:
- **One exit** (`E`).
- **One collectible** (`C`).
- **One starting position** (`P`).
- Must be **rectangular**.---
## Screenshots
![]()
![]()