2022-06-12 17:49:42 +00:00
|
|
|
/*
|
|
|
|
- Avoid ~ a game by Canneddonuts
|
|
|
|
- Filename ~ Gameplay.h
|
|
|
|
- Author ~ Return0ne
|
|
|
|
- 2022
|
|
|
|
- *no license*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GAMEPLAY_HEADER
|
|
|
|
#define GAMEPLAY_HEADER
|
|
|
|
|
2022-06-17 16:32:35 +00:00
|
|
|
struct Actor {
|
2022-06-12 17:49:42 +00:00
|
|
|
Texture2D sprite;
|
|
|
|
float speed;
|
|
|
|
int hp;
|
|
|
|
int currentframe;
|
|
|
|
Vector2 sprite_pos;
|
|
|
|
Rectangle frameRec;
|
|
|
|
Rectangle hitbox;
|
2022-06-17 02:17:26 +00:00
|
|
|
};
|
2022-06-12 17:49:42 +00:00
|
|
|
|
2022-06-17 02:17:26 +00:00
|
|
|
struct Item {
|
2022-06-12 17:49:42 +00:00
|
|
|
Texture2D sprite;
|
|
|
|
Vector2 sprite_pos;
|
|
|
|
Rectangle hitbox;
|
|
|
|
bool active;
|
2022-06-17 02:17:26 +00:00
|
|
|
};
|
2022-06-12 17:49:42 +00:00
|
|
|
|
2022-06-17 16:32:35 +00:00
|
|
|
struct Actor player = { 0 };
|
|
|
|
struct Actor enemy = { 0 };
|
2022-06-17 02:17:26 +00:00
|
|
|
struct Item heart = { 0 };
|
2022-06-12 17:49:42 +00:00
|
|
|
int pauseTimer;
|
|
|
|
Sound fxbounce = { 0 };
|
|
|
|
bool pause;
|
|
|
|
bool mute;
|
|
|
|
bool DebugMode;
|
|
|
|
|
|
|
|
#endif
|