Skip to content

This project is a simple 2D game designed to make you use textures, sprites and some basic gameplay elements.

Notifications You must be signed in to change notification settings

hanmpark/so_long

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

so_long

First graphical project using the MLX42 library.


Repository created at Repository code size Mostly used language

📖 Description

The so_long project is the first graphical project of the 42 Common Core.

It introduces the basics of: "Window management" "Event management (keyboard and mouse)" "Color and texture handling"

The project uses the MLX42 library, which provides simple tools for window creation, image rendering, and event handling.

🛠️ Features

  • Display a 2D tile-based map with walls, collectibles, player, and exit.
  • Simple enemy AI: enemies move left to right.
  • Collision detection: if the player meets an enemy → Game Over.
  • Map parsing and validation.
  • Keyboard controls for player movement.
so_long gameplay

📦 Installation

Clone the repository and compile:

git clone https://github.com/hanmpark/so_long.git
cd so_long
make

🚀 Usage

Run the game with a valid map file:

./so_long path/to/map.ber

👤 Authors

About

This project is a simple 2D game designed to make you use textures, sprites and some basic gameplay elements.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published