JeremieSiller / so_long

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

so_long

Table of contents

  1. About
  2. Description
  3. Credits
  4. minilibX
  5. libft

About

so_long is a project at 42 with the goal to create a really simple game. It is about learning how to use windows, events, colours and more. The school provides a small library to use which only contains some really basic functions.

how to use:

Clone the repository:

git clone --recursive https://github.com/JeremieSiller/so_long/

run make to compile the programm

make

execute the programm with a .ber file

./so_long map.ber

to start the game the map file needs to follow some rules else it will just return an error. (For more information look into Description)

Description

how to play:

  • use W A S D to move
  • collect all coins before going to the spaceship
  • if you try to fly away with the spaceship without collecting all coins you loose
  • press ESC or click the red cross to exit the window and the program

a valid map...

  • is sorrounded by walls (1)
  • contains at least one exit (E)
  • contains at least one coin (C)
  • contains exactly one player (P)

Credits

links to the used xpm files:

miniLibX

the project uses miniLibx a basic window mangement library. You can find it here: https://github.com/42Paris/minilibx-linux

libft

the project uses the submodule libft which is an earlier project of the 42 core curriculum. You can find mine here: https://github.com/ayeCaptainJack/libft

About


Languages

Language:C 65.4%Language:Objective-C 30.2%Language:Makefile 4.4%