Skip to content

A 2D game project developed for the 42 School, using the MiniLibX library.

Notifications You must be signed in to change notification settings

Alabar666/so_long

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

so_long

A 2D game project developed for the 42 School, using the MiniLibX library.

Overview

The so_long project is a simple 2D game where the player must navigate through a map, collect items, and reach the exit while avoiding enemies. The game was developed as part of the 42 School curriculum, with the objective of understanding basic game mechanics and graphical rendering using the MiniLibX library.

Features

  • 2D Game Rendering using MiniLibX
  • Player Movement across a grid-based map
  • Collectible Items that must be gathered before exiting
  • Enemies that the player must avoid
  • Customizable Maps created using simple text files

Installation

  1. Clone the repository:

    git clone https://github.com/Alabar666/so_long.git
  2. Navigate to the project directory:

    cd so_long
  3. Compile the game:

    make
  4. Run the game with a map file:

    ./so_long maps/sample_map.ber

How to Play

  • Use the arrow keys to move the character.
  • Collect all the items (C) on the map.
  • Avoid the enemies (M) and reach the exit (E).

Example Gameplay

Stand Animation

Stand Animation

The character's idle animation when not moving.

Kill Goblin Animation

Kill Goblin Animation

An animation showing the action of killing a goblin.

Lose Animation

Lose Animation

An animation that plays when the player loses the game.

Victory Animation

Victory Animation

An animation that plays when the player wins the game.

Animation Scale (Small)

Stand Animation Small

The character's idle animation when not moving, shown in a small scale.

Animation Scale (Big)

Stand Animation Big

The character's idle animation when not moving, shown in a large scale.

Map Format

Maps are simple .ber files that represent the game grid. Each character in the file corresponds to a different element:

  • 1 - Wall
  • 0 - Empty Space
  • P - Player Start Position
  • C - Collectible Item
  • E - Exit
  • M - Enemy

Contributing

Contributions are welcome! Feel free to submit a pull request or open an issue.

Special Thanks

A special thanks to Kahon Senpai for the amazing sprites used in the game. Your artwork greatly enhanced the visual appeal and overall experience of the project. I appreciate your creativity and dedication to the gaming community. https://kahonsenpai.itch.io/non-commercial-goblin-slayer

About

A 2D game project developed for the 42 School, using the MiniLibX library.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published