Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
TP7projet_jeu_air_defense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MARQUE Pierre
TP7projet_jeu_air_defense
Commits
e1ba205b
Commit
e1ba205b
authored
Oct 30, 2020
by
Pierre MARQUE
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tout fonctionne :reste réglages de difficultés et d'apparence
parent
99b6ce2a
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
336 additions
and
114 deletions
+336
-114
air_defense.c
air_defense.c
+322
-108
air_defense.exe
air_defense.exe
+0
-0
air_defense.h
air_defense.h
+14
-6
No files found.
air_defense.c
View file @
e1ba205b
This diff is collapsed.
Click to expand it.
air_defense.exe
View file @
e1ba205b
No preview for this file type
air_defense.h
View file @
e1ba205b
...
...
@@ -8,7 +8,6 @@ typedef struct Paratrooper
int
life
;
bool
droped
;
Rectangle
hitbox
;
Vector2
position
;
Vector2
speed
;
Color
color
;
// yellow or red
}
Paratrooper
;
...
...
@@ -17,10 +16,8 @@ typedef struct Aircraft
{
int
life
;
float
xFirstToJump
;
float
xLastTrooperDrop
;
int
numberOfParatroopers
;
Rectangle
hitbox
;
Vector2
position
;
Vector2
speed
;
Color
color
;
//black
}
Aircraft
;
...
...
@@ -28,7 +25,6 @@ typedef struct Aircraft
typedef
struct
Bombshell
{
float
radius
;
int
damageDone
;
float
sin
;
float
cos
;
bool
ammoShot
;
...
...
@@ -67,12 +63,24 @@ typedef struct AntiParaCanon
//------------------------------------------------------------------------------------
// Module Functions Declaration
(local)
// Module Functions Declaration
//------------------------------------------------------------------------------------
static
void
InitGame
(
void
);
// Initialize game
static
void
UpdateGame
();
// Update game (one frame)
static
void
DrawGame
(
void
);
// Draw game (one frame)
static
void
UnloadGame
(
void
);
// Unload game
void
IsParaAlive
(
void
);
//------------------------------------------------------------------------------------
// Other Functions
//------------------------------------------------------------------------------------
//Initialization functions------------------------------------------------------------
Aircraft
InitializeAircraft
(
void
);
Bombshell
InitializeBombshell
(
void
);
Bullet
InitializeBullet
(
void
);
Paratrooper
InitializeParatrooper
(
void
);
//Game functions----------------------------------------------------------------------
bool
IsRectangleOut
(
Rectangle
rec
);
bool
IsCircleOut
(
Vector2
center
,
float
radius
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment