Skip to content

JoviMetzger/42Project-So_long

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

video

🐝 So_long

This repository contains a 2D game called "so_long" that was created as a basic computer graphics project. The game helps to improve skills in window management, event handling, colors, textures, and more using the MLX42 library.

About

The game involves navigating a player through a map composed of only 5 characters:

  • 0 for an empty space,
  • 1 for a wall,
  • C for a collectible,
  • E for a map exit,
  • P for the player’s starting position.

Example of a minimal .ber map:

1111111111111
10010000000C1
1000011111001
1P0011E000001
1111111111111

Installation

To execute the program, follow the steps below:

  1. Compile the game by running the following command:
$ make
  1. Finally, execute the program using the following command:
$ ./so_long <./path_to_map/map.ber>

OR alternatively, you can use the following command to compile and run the game in one step:

$ make open

Resources

About

Contains a 2D game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published