Minimap, Pixel Perfect Collision & Timer/Stopwatch using SDL 1.2 Library in C.
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.
- Call the desiered functions in your
main.c
with your ownresources
. - For testing :
1- go inside the folder.
2- run makefile by typingmake
.
3- run the program by typing./prog
.