blob: 460fe388ffaea60c7e3f6f9e81e620c2af41e520 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#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);
void closeAntifaShip(Entity * entity);
void updateAntifaShip(Game * game, Entity * entity);
void drawAntifaShip(Game * game, Entity * entity);
#endif
|