diff options
author | nathansmithsmith <nathansmith7@mailfence.com> | 2023-10-11 18:54:50 -0600 |
---|---|---|
committer | nathansmithsmith <nathansmith7@mailfence.com> | 2023-10-11 18:54:50 -0600 |
commit | bbb2c70cd1a0603d57d0fc7615ad8994bfaf39bc (patch) | |
tree | 903a18ad8e33f240a278401fa7114b86f5733dc1 /src/entities/antifaShip.h | |
parent | 720467f4b295d86aac8acb75c78822c21fcba281 (diff) |
Made player gun a bit better
Diffstat (limited to 'src/entities/antifaShip.h')
-rw-r--r-- | src/entities/antifaShip.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/entities/antifaShip.h b/src/entities/antifaShip.h index e9c78bd..460fe38 100644 --- a/src/entities/antifaShip.h +++ b/src/entities/antifaShip.h @@ -1,15 +1,20 @@ #include "gameCommon.h" #include "entity.h" +#include "bullets.h" #ifndef ANTIFA_SHIP_H #define ANTIFA_SHIP_H #define ANTIFA_SHIP_MAX_SPEED 200.0 +#define ANTIFA_BULLET_COOLDOWN 0.5 +#define ANTIFA_DRAW_BULLET_FOR 0.05 typedef struct AntifaShip { Vector2 lastMouse; float forwardSpeed; bool shouldInitMousePosition; + double timeSinceLastBullet; + Bullet lastBulletShot; } AntifaShip; void initAntifaShip(Entity * entity, Game * game); |