summaryrefslogtreecommitdiff
path: root/dat.h
diff options
context:
space:
mode:
authoresquizo <esquizo+noreply@esquizo.net>2026-06-03 19:24:29 -0300
committeresquizo <esquizo+noreply@esquizo.net>2026-06-03 19:24:29 -0300
commit94bdded9102bc2e2b2e4bded8f180749efda1b72 (patch)
tree1a1dac5472b2797980193ce1439a1ca24f47aabf /dat.h
parent022b9bd5f910629ecbf837b38b3cd761c2f703ea (diff)
game: adicionado entity teleporter
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;
+