From bbb2c70cd1a0603d57d0fc7615ad8994bfaf39bc Mon Sep 17 00:00:00 2001 From: nathansmithsmith Date: Wed, 11 Oct 2023 18:54:50 -0600 Subject: Made player gun a bit better --- src/entities/antifaShip.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/entities/antifaShip.h') 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); -- cgit v1.2.3