blob: 18bacbcd4a7360de8d8ff832360ea2de35e68e1e (
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
26
27
|
#include "gameCommon.h"
#include "entity.h"
#include "PID.h"
#include <raylib.h>
#ifndef CAPORALE_H
#define CAPORALE_H
#define CAPORALE_COOLDOWN 1.0
#define CAPORALE_BULLET_DAMAGE 0.01
#define CAPORALE_GUN_TARGETING_SPEED 20.0
#define CAPORALE_LOW_HEALTH_THRESHOLD 0.9
#define CAPORALE_LOW_HEALTH_BULLET_DAMAGE 0.02
typedef struct Caporale {
EntityFlyToPointInfo flyToPlayer;
double timeSinceLastShot;
Vector3 gunTarget;
} Caporale;
void initCaporale(Entity * entity, Game * game);
void closeCaporale(Entity * entity);
void updateCaporale(Game * game, Entity * entity);
void drawCaporale(Game * game, Entity * entity);
#endif
|