Skip to content

AyoubChraiti/So_long

Repository files navigation

My First 2D game

Game Screenshot

Description:

So_Long is a simple 2D game project implemented in C programming language using the MiniLibX graphical library. The game presents a basic game loop where the player navigates a character through a maze-like environment, collecting items while avoiding obstacles to reach the goal.

Table of Contents: Introduction Features Installation Usage Controls Gameplay Contributing License

1. Introduction

So_Long is a project developed as part of the 42 school curriculum. It aims to introduce students to the basics of game development and graphics programming using C and the MiniLibX library.

2. Features

Simple 2D graphics rendering. Maze-like environment generation. Character movement and collision detection. Item collection and goal-reaching mechanics. 3. Installation To install and run So_Long on your system, follow these steps:

Clone the repository to your local machine: bash

git clone [repository_url]

Navigate to the project directory:

cd so_long

Compile the project using the provided Makefile:

make

Run the executable:

./so_long [map_file]

Replace [map_file] with the path to the map file you want to load.

4. Usage

The game loads the map specified as a command-line argument. Navigate the character using the arrow keys to collect items and reach the goal. Press ESC key to exit the game.

5. Controls

Arrow Keys: Move the character up, down, left, or right. ESC: Exit the game.

6. Gameplay

Navigate through the maze-like environment, collect items represented by specific symbols, and reach the goal indicated on the map. Avoid obstacles and enemies that hinder your progress. The game ends when the character reaches the goal or collides with an obstacle.

7. Contributing

Contributions to So_Long are welcome! If you find any bugs or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository.

About

My first 2D game using the MINILIBX Library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published