0x0M4R / 42-so_long

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

42-so_long

oabdalla's 42Project Score

Description:

A simple 2d game where the player must collect all the coins and exit the map.

  • W, A, S, and D keys to move the character.
  • ESC closes the window and quits the program.
  • the program takes a map description file with the .ber extension as argument.
    • The map must be composed of only 5 possible characters: 0 for an empty space, 1 for a wall, C for a collectible, E for map exit and P for the player’s starting position.
    • The map must be closed/surrounded by walls.
    • Map must have at least one collectable, one exit, and one starting position.
    • Map must be rectangular.

Objectives:

  • Applicative

Skills:

  • Graphics
  • Imperative programming

Usage:

git clone
make all
./so_long "maps/validmap.ber"

Preview:

screen-gif

About


Languages

Language:C 68.7%Language:Objective-C 30.6%Language:Makefile 0.6%Language:Berry 0.1%