/* - Avoid ~ a game by Canneddonuts - Filename ~ Gameplay.h - Author ~ Return0ne - 2022 - *no license* */ #ifndef GAMEPLAY_HEADER #define GAMEPLAY_HEADER typedef enum Levels { LEVEL1 = 0, LEVEL2, LEVEL3 } Levels; #define MAX_FIREWORKS 10 #define PLAYER_HP 3 #define MAX_SHOOTS 3 struct Actor { float speed; int hp; int currentframe; Vector2 sprite_pos; Rectangle frameRec; Rectangle hitbox; Color color; }; struct Item { Vector2 sprite_pos; Rectangle hitbox; bool active; Color color; int power; }; struct Attack { Vector2 sprite_pos; Rectangle hitbox; Vector2 speed; int active; Color color; }; struct Actor player = { 0 }; struct Actor enemy = { 0 }; struct Attack fireworks[MAX_FIREWORKS] = { 0 }; struct Item feather = { 0 }; struct Attack shoot[MAX_SHOOTS] = { 0 }; Sound fxhit = { 0 }; Sound fxfeather = { 0 }; Sound fxboom = { 0 }; bool pause; bool player_in; bool DebugMode; bool enemy_hurt; int ammo = 0; int GI_callcount = 0; #endif