Skip to content
chrisdelmoroPublic

About

This project is a very small 2D game. Its purpose is to make the student work with textures, sprites, and some other very basic gameplay elements.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

46 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Logo

A simple 2D game. The short introduction to game development and visual elements.

Table of Contents
  1. About The Project
  2. Usage
  3. License
  4. Contact

About The Project

so_long

This project is a very small 2D game. Its purpose is to make the student work with textures, sprites, and some other very basic gameplay elements. The student has to develop a game that takes as map file as a parameter, validades it according to several prerequesites, and then render the map to allow the game to be played. The player then has to collect every collectable to be able to complete the game.

The map prerequesites are:

  1. The map needs to have a .ber extension;
  2. The map has to be a rectangle;
  3. The map can contain only valid caracters:
    • 1 to represent a wall;
    • 0 to represent empty space, or a walkable area;
    • P to represent the player character;
    • C to represent a collectable;
    • E to represent an exit for the map;
    • And in case of the bonus, an additional character to represent an enemy patrol;
  4. The map can contain only one player;
  5. The map can contain only one exit;
  6. The map needs at least one collectable;

The buttons that can be pressed on the game are:

  • W, A, S and D are used to move the player character;
  • ESC can be pressed to close the game. You can also click the X button on the top right of the screen;

(back to top)

Prerequisites

This project uses 42s MiniLibX to render the game. Therefore you need to have it installed on your Linux machine. The library can be found here.

(back to top)

Usage

Clone the repo and make it. Run make to play the mandatory part of the project and make bonus to play the bonus part of the project with exemy patrols and the movement counter on the windows, instead of the terminal.

(back to top)

License

Distributed under the GNU General Public License version 3 (GPLv3).

(back to top)

Contact

Christian C. Del Moro - christian.delmor@gmail.com

Project Link: https://github.com/chrisdelmoro/so_long

(back to top)

About

This project is a very small 2D game. Its purpose is to make the student work with textures, sprites, and some other very basic gameplay elements.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages