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
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);
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