Commit a0796251 authored by Pierre MARQUE's avatar Pierre MARQUE

Fini mais pas de son

parent 64ca4b53
This diff is collapsed.
No preview for this file type
......@@ -6,15 +6,20 @@
typedef struct Paratrooper
{
int life;
float xDrop;
float yDrop;
bool droped;
bool whichWay;
Rectangle hitbox;
Vector2 speed;
Color color; // yellow or red
Rectangle drag[10];
}Paratrooper;
typedef struct Aircraft
{
int life;
float height;
float xFirstToJump;
int numberOfParatroopers;
Rectangle hitbox;
......@@ -61,12 +66,24 @@ typedef struct AntiParaCanon
Vector2 aimingPosition;
}AntiParaCanon;
typedef struct Viewfinder
{
Rectangle up;
Rectangle down;
Rectangle left;
Rectangle right;
float radius;
Vector2 center;
Color color;
}Viewfinder;
//------------------------------------------------------------------------------------
// Module Functions Declaration
//------------------------------------------------------------------------------------
static void InitGame(void); // Initialize game
static void UpdateGame(); // Update game (one frame)
static void UpdateGame(void); // Update game (one frame)
static void DrawGame(void); // Draw game (one frame)
static void UnloadGame(void); // Unload game
......@@ -76,11 +93,19 @@ static void UnloadGame(void); // Unload game
//Initialization functions------------------------------------------------------------
Aircraft InitializeAircraft(void);
AntiAircraftCanon InitializeAntiAircraftCanon(void);
AntiParaCanon InitializeAntiParaCanon(void);
Bombshell InitializeBombshell(void);
Bullet InitializeBullet(void);
Paratrooper InitializeParatrooper(void);
Viewfinder InitializeViewfinder(float decalage);
//Game functions----------------------------------------------------------------------
bool IsRectangleOut(Rectangle rec);
bool IsCircleOut(Vector2 center, float radius);
Aircraft MoveAircrafts(Aircraft aircraft);
Bombshell MoveBombshell(Bombshell bombshell);
Bullet MoveBullet(Bullet bullet);
Paratrooper MoveParatrooper(Paratrooper paratrooper);
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