Skip to content

sgkhusal/42-so_long

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42_so_long

A small 2D game

so_long3

Game rules

  • The player’s goal is to collect every collectible present on the map, then escape chosing the shortest possible route.
  • The player moves in these 4 directions: up (keyboarde W), down (keyboarde S), left (keyboarde A), right (keyboarde D).
  • If the player touchs an enemy he dies

Requirements:

  • Minilibx installed (for 42 students using Workspaces the library is already installed)
  • Minilibx requires differents libraries depending on the OS as explained here
  • For Linux or Mac OS update Makefile as indicated here in the installation and compilation parts.

Running the game

If you are using Workspaces just

  • run make bonus
  • run ./so_long_bonus map.ber with the specific map of your choose

Map files are provided in assets/maps folder but you can create your own maps. The game only accepts a map in the *ber format and the characters:

  • 1 for walls
  • 0 for empty space
  • C for colletibles
  • E for exit
  • P for player

When there is more than one player position the last 'P' is set as the initial player position and the other 'P's are set as enemies.

Enjoy and have fun!

Sprites references

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published