Skip to content

Small top-down, 2D game with textures, sprites, and basic gameplay

License

Notifications You must be signed in to change notification settings

iker-gonzalez/so_long

Repository files navigation

👾 So Long

Development repo for 42cursus' so_long project
For further information about 42cursus and its projects, please refer to 42cursus repo.

GitHub code size in bytes Number of lines of code Code language count GitHub top language GitHub last commit

About · Usage · Game


🗣️ About

Small top-down, 2D game with textures, sprites, and basic gameplay.

So long ss1

For detailed information, refer to the subject of this project

🛠️ Usage

First, run the command make on mlx directory (don't bother about the warning signs, your computer will resist).

Then, you need to run the command make on the root directory.

This will compile the executable file so_long.

Last, run ./so_long sample_maps/map1.ber or any map of your choice.

You can also create more random maps by running the map_generator file found in the map generator directory (instructions are in Spanish, you may need to use some basic Google translation skills).

Game

To play this game you can use any map of your choice as long as follows the following rules:

  • The extension needs to be .ber
  • It must be rectangular, surrounded by walls 1
  • Must have only one exit, one player and at least one collectible
  • Characters allowed:
Character Object
1 wall
0 Empty
C collectible
E exit
P Player starting position
V Enemy starting position

Controls

You can use AWSD to move UP, DOWN, LEFT, RIGHT respectively.
For restarting the game press ESC or click on the red cross on the upper-left corner. To win the game it's necessary to pick up all the collectibles and pass through the exit.

About

Small top-down, 2D game with textures, sprites, and basic gameplay

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published