diff options
| author | esquizo <esquizo+noreply@esquizo.net> | 2026-06-03 19:24:29 -0300 |
|---|---|---|
| committer | esquizo <esquizo+noreply@esquizo.net> | 2026-06-03 19:24:29 -0300 |
| commit | 94bdded9102bc2e2b2e4bded8f180749efda1b72 (patch) | |
| tree | 1a1dac5472b2797980193ce1439a1ca24f47aabf /dat.h | |
| parent | 022b9bd5f910629ecbf837b38b3cd761c2f703ea (diff) | |
game: adicionado entity teleporter
Diffstat (limited to 'dat.h')
| -rw-r--r-- | dat.h | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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; + |
