Skip to content

s-marsi/so_long_1337

Repository files navigation

so_long_1337

Discover the world of computer graphics with so_long_1337, a 2D game project using MiniLibX. Experience engaging gameplay and unleash your creativity in graphics programming.

Table of Contents

Subject :

  1. subject.pdf

Description :

  • "so_long" is a captivating 2D adventure where players traverse a maze, aiming to collect all items before reaching the exit. Along the way, they must skillfully navigate past obstacles like walls and enemies to emerge victorious.

Getting Started

Prerequisites

  • To use this program, you need a C compiler (e.g., GCC) and the make utility installed on your system.

Installation

  1. Clone the repository:

    git clone https://github.com/s-marsi/so_long_1337.git so_long
    cd so_long
  2. Compile the program:

    make  # This will generate the so_long program.
    make clean      # This will remove object files.
  3. Usage :

    • Execute in your bash terminal: ./so_long folder/file.ber
    • - ./so_long : the name of the program.
      - maps : The folder that stores map files.
      - map5.ber : The file containing the map data. (you can make your own map)
      - In the map file, you will find the following letters: 0, 1, C, E, P, N, B.
      0 represents an empty space. 1 represents a wall. C represents a collectible. E represents the map exit. P represents the player's starting position. N represents the black bomb. B represents the red bomb.
    • The map file should have a .ber extension.
    • For example :
      ./so_long maps/map5.ber

    How to Play

    Use the W, A, S, and D keys to move the player character:

    • W: Move up

    • A: Move left

    • S: Move down

    • D: Move right

      Design sans titre (1)

About

Explore the world of computer graphics through a 2D game project using the MiniLibX library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published