summaryrefslogtreecommitdiff
path: root/dat.h
diff options
context:
space:
mode:
Diffstat (limited to 'dat.h')
-rw-r--r--dat.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/dat.h b/dat.h
index 4ad6fd9..71bf8e8 100644
--- a/dat.h
+++ b/dat.h
@@ -12,6 +12,7 @@ typedef struct {
EPLAYER,
EGHOST,
EBULLET,
+ ETELEPORTER,
LASTEntity,
} type;
@@ -20,6 +21,8 @@ typedef struct {
float time;
float life;
bool alive;
+
+ int telex, teley;
} Entity;
typedef struct {
@@ -51,9 +54,21 @@ extern float player_x, player_y;
extern int ghostcount;
extern float ghostpositions[][2];
+extern struct {
+ int ftx, fty;
+ int ttx, tty;
+} telemap[];
+extern int telemapsize;
+
+extern struct {
+ float x, y;
+} teles[];
+extern int telessize;
+
extern Entity *player;
extern bool shot;
extern int shotx, shoty;
extern bool moveleft, moveright, moveup, movedown;
+