Skip to content

Latest commit

 

History

History
79 lines (56 loc) · 2.59 KB

README.md

File metadata and controls

79 lines (56 loc) · 2.59 KB

so_long

Preview

Warning

Photosensitive Warning: This illuminated dance floor may feature flashing or strobing lights. People who are sensitive to flashing lights or have a history of photosensitive epilepsy may be at risk of seizures or other symptoms. Viewer discretion is advised.

If you experience dizziness, disorientation, or any other symptoms, stop the preview.

So_long_preview.webm

Description

So_long is a 2D game where the goal is to gather every collectible to open the exit and escape. It is made from scratch with the help of MLX42.

It must have:

  • A player.
  • An exit.
  • At least one collectible.
  • Walls.

Bonus

In the bonus part, it is required to have the following features:

  • Add enemies, and the player loses when it touches any of them.
  • Add sprite animations.
  • Display the movement count on the screen.

Usage

Clone the repository and build the program

git clone https://github.com/ribana-b/so_long
cd so_long
make

Run the program

./bin/so_long ./maps/map.ber

Note

There are a bunch of maps in the maps folder, you can also create them. Just make sure that:

  • The map is rectangular and surrounded by walls
  • The player is able to win
  • The map name ends with .ber extension. For example example.ber

Controls

Key Description
W, Up Arrow, K Move up
A, Left Arrow, H Move left
S, Down Arrow, J Move down
D, Right Arrow, L Move right
ESC, Q Close the window

If you wonder why I added h, j, k, l as controls, I'm just going to say vim enjoyer.

Sprites

I made every sprite using LibreSprite. But I used these images as reference.

Progress

If you are interested in checking my progress in 42 Common Core, I suggest you to take a look at My Common Core Projects