ayogun / so-long

In this projects I create my own 2D game where I have a map that can have different dimensions and contents.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SO_LONG


Description

This project is a very small 2D game. It is built to make you work with textures, sprites. And some very basic gameplay elements.


How play the game

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

  • The extension need be .ber
  • Its must be rectangular, surrounded by wall 1
  • Must have only one exit, only one player and at least one collectible
  • Characters allowed:
Character Object
1 wall
0 Empty
C collectible
E exit
P Player position
D Enemy(Devil) position

In folder maps have some examples of maps.


Control of play

You can use AWSD to move UP, DOWN, LEFT, RIGHT.
For restart the game press ESC or click on the red cross of window. If you touch the enemy you loose the game. To win the game its necessary pick up all collectible and pass for the exit.


How execute the game

To start the game you need run the command make root directory. This will compile the executable file so_long, to execute its necessary run ./so_long maps/map1.ber or any map of your choice.


Or;


To start the game you need run the command make bonus root directory. This will compile the executable file so_long_bonus, to execute its necessary run ./so_long_bonus maps/map1.ber or any map of your choice.


Makefile rules

Rule Description
make Compile the program.
make bonus Compile the bonus part of the program.
make clean Remove every objects of compilation
make fclean Do clean rule and remove the executable program
make re Do fclean rule and compile the program

Trailer

Here on the top left corner it is visible how the game counts the score. I know how hard to see it. Anywho, I couldn't find a way to print it out bigger in Minilibx. lol


Here I try to present how our hero dies when he touches one of the devils.

About

In this projects I create my own 2D game where I have a map that can have different dimensions and contents.

License:MIT License


Languages

Language:C 80.5%Language:Objective-C 17.1%Language:Makefile 2.4%