Skip to content
Snippets Groups Projects
Commit eb8db720 authored by llebasca's avatar llebasca
Browse files

Life number addition

parent d9edd8be
No related branches found
No related tags found
4 merge requests!9Modele,!8Modele,!7Modele,!6Modele
......@@ -6,7 +6,7 @@
* \file personnage.h
* \brief Character Header File
* \authors Lucile
* \version 1
* \version 2
* \date 25/02/2021
*
* Character structure and functions definition.
......@@ -41,8 +41,9 @@ typedef struct {
int x_lr; /**< Position : x low-right point */
int y_lr; /**< Position : y low-right point */
int speed_pers; /**< Character speed */
int life; /**< Life number */
char * image_pers; /**< Source image of the character. */
Direction direction_personnage;
Direction direction_personnage; /**< Direction */
}Personnage;
void init_pers(Personnage * character, int x, int y, int length, int width, int speed, char * path);
......
......@@ -6,7 +6,7 @@
* \file personnage.c
* \brief Character Source File
* \authors Lucile, Tin
* \version 1
* \version 2
* \date 02/03/2021
*
* Character function implementation.
......@@ -47,6 +47,7 @@ void init_pers(Personnage * character, int x, int y, int length, int width, int
character->direction_personnage.down = 0;
character->direction_personnage.left = 0;
character->direction_personnage.right = 0;
character->life=3;
}
/*!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment