Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GAME INSA PROJECT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
3EII INFO LKCH
GAME INSA PROJECT
Commits
eb8db720
Commit
eb8db720
authored
3 years ago
by
llebasca
Browse files
Options
Downloads
Patches
Plain Diff
Life number addition
parent
d9edd8be
No related branches found
No related tags found
4 merge requests
!9
Modele
,
!8
Modele
,
!7
Modele
,
!6
Modele
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
GAME/include/personnage.h
+3
-2
3 additions, 2 deletions
GAME/include/personnage.h
GAME/src/personnage.c
+2
-1
2 additions, 1 deletion
GAME/src/personnage.c
with
5 additions
and
3 deletions
GAME/include/personnage.h
+
3
−
2
View file @
eb8db720
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
GAME/src/personnage.c
+
2
−
1
View file @
eb8db720
...
...
@@ -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
;
}
/*!
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment