Skip to content

Some functions I made for a 2D Game using C & SDL 1.2 Library

Notifications You must be signed in to change notification settings

TiramisuAddict/Minimap-SDL1.2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimap, Pixel Perfect Collision & Timer/Stopwatch using SDL 1.2 Library in C.

screenshot

screenshot

Description

Secondary functionalities along with a minimap for a 2D game made with C & SDL 1.2 Library :

  • init_minimap : Initializes the minimap.
  • MAJMinimap : Updates the minimap.
  • afficher_minimap : Displays the minimap on the screen.
  • liberer_minimap : Frees the resources allocated for the minimap.
  • affichertempsen : Displays the elapsed time since the start time.
  • affichertemps : Displays a mini stopwatch.
  • GetPixel : Returns the color of the pixel at the given coordinates.
  • collisionPP : Perfect Pixel Collision between the player and a specific color (black) in the background.
  • sauvegarder : Saves the game state to a file.
  • charger : Loads the game state from a file.

How to use

  • Call the desiered functions in your main.c with your own resources.
  • For testing :
    1- go inside the folder.
    2- run makefile by typing make.
    3- run the program by typing ./prog.

Related

About

Some functions I made for a 2D Game using C & SDL 1.2 Library

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published