blob: a248c12d31dad940feab64c9963329ebc6821ef3 (
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
28
|
#include "gameCommon.h"
#include "entity.h"
// This mother fucker follows the player and goes fucking boom boom!!!
// btw I wrote some of this on 9/11
#ifndef GUIDED_MISSILE_H
#define GUIDED_MISSILE_H
#define GUIDED_MISSILE_DAMAGE 0.5
#define GUIDED_MISSILE_BOOM_BOOM_AT 5.0
#define GUIDED_MISSILE_DEATH_DAY 5.0 // Its like a birth day but sad.
typedef struct GuidedMissile {
bool beenBorn;
double birthDay; // Even missiles have birth days.
EntityFlyToPointInfo flyToPoint;
} GuidedMissile;
void initGuidedMissile(Entity * entity, Game * game);
void closeGuidedMissile(Entity * entity);
void updateGuidedMissile(Game * game, Entity * entity);
void drawGuidedMissile(Game * game, Entity * entity);
// Boom boom like a poop poop
void guidedMissileGoBoomBoom(Game * game, Entity * entity);
#endif
|