Commit e1ba205b authored by Pierre MARQUE's avatar Pierre MARQUE

Tout fonctionne :reste réglages de difficultés et d'apparence

parent 99b6ce2a
This diff is collapsed.
No preview for this file type
...@@ -8,7 +8,6 @@ typedef struct Paratrooper ...@@ -8,7 +8,6 @@ typedef struct Paratrooper
int life; int life;
bool droped; bool droped;
Rectangle hitbox; Rectangle hitbox;
Vector2 position;
Vector2 speed; Vector2 speed;
Color color; // yellow or red Color color; // yellow or red
}Paratrooper; }Paratrooper;
...@@ -17,10 +16,8 @@ typedef struct Aircraft ...@@ -17,10 +16,8 @@ typedef struct Aircraft
{ {
int life; int life;
float xFirstToJump; float xFirstToJump;
float xLastTrooperDrop;
int numberOfParatroopers; int numberOfParatroopers;
Rectangle hitbox; Rectangle hitbox;
Vector2 position;
Vector2 speed; Vector2 speed;
Color color; //black Color color; //black
}Aircraft; }Aircraft;
...@@ -28,7 +25,6 @@ typedef struct Aircraft ...@@ -28,7 +25,6 @@ typedef struct Aircraft
typedef struct Bombshell typedef struct Bombshell
{ {
float radius; float radius;
int damageDone;
float sin; float sin;
float cos; float cos;
bool ammoShot; bool ammoShot;
...@@ -67,12 +63,24 @@ typedef struct AntiParaCanon ...@@ -67,12 +63,24 @@ typedef struct AntiParaCanon
//------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------
// Module Functions Declaration (local) // Module Functions Declaration
//------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------
static void InitGame(void); // Initialize game static void InitGame(void); // Initialize game
static void UpdateGame(); // Update game (one frame) static void UpdateGame(); // Update game (one frame)
static void DrawGame(void); // Draw game (one frame) static void DrawGame(void); // Draw game (one frame)
static void UnloadGame(void); // Unload game 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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment