Skip to content

niamu01/so_long

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

so_long

🎮 make 2D game

This project is a small 2D game with minilibx. And learn about textures, sprites and tiles.

Technologies Used

C MAKEFILE MLX

Screenshot

pic
so_long.mov

Subject

Mandatory

  • Various error handling
    • You must check whether the map is playable. You can use an algorithm for this check.
    • Read the map file. Each map must contain essential game elements.
  • Utilization of external libraries
    • Must be able to manage windows and render images and textures using an mlxlib, a custom 42 library based on OpenGL.
  • Gameplay
    • Develop a game allowing movement via WASD, and escape through the exit after collecting all the given collectors.
  • Display the count of spaces moved on the terminal after each movement.

Bonus

  • Enemy patrols that cause the player to be defeated if they come into contact with them.
  • There is sprite animation.
  • Move count is displayed directly on screen instead of shell output

Getting Started

git clone https://github.com/niamu01/so_long
cd so_long
make [all, re, clean, fclean, bonus]
  • make all: Compiles mandatory files and creates the libftprintf.a file.
  • make re: Performs an incremental build.
  • make clean: Removes object files.
  • make fclean: Removes object files and the library file.
  • make bonus: Builds, including bonus functions in the library.ap

* you can only build this game on Intel Macs
* After completing the assignment, I created a new version called so_long.ver2 that runs on different architectures (M1, Intel).

How To Use

./so_long /path/to/map_file.ber

About

🎮 This project is a very small 2D game. It is use textures, sprites. And some very basic gameplay elements.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors