diff options
| author | esquizo <esquizo+noreply@esquizo.net> | 2026-05-02 14:12:34 -0300 |
|---|---|---|
| committer | esquizo <esquizo+noreply@esquizo.net> | 2026-05-02 14:12:43 -0300 |
| commit | 34acd612061792a38aa13e376b20f4b5d4b54302 (patch) | |
| tree | 1b0afe88f88f9f83c4e979383c8ccbbf4d91b3b1 /dat.h | |
| parent | b2a58e06b885c5801814943669d383f0141ddabb (diff) | |
movida a logica do jogo pro game.c
Diffstat (limited to 'dat.h')
| -rw-r--r-- | dat.h | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -1,7 +1,6 @@ #define BULLET_SIZE 2 #define ENTITY_SIZE 16 - typedef struct { float pos[2]; float size[2]; @@ -30,12 +29,22 @@ typedef void (EntityCollisionProc)(Entity *self, Entity *other); typedef void (EntityUpdateProc)(Entity *self, float delta); void entphysics(float delta); +void entupdate(float delta); +void entinit(void); void enqcoll(EntityCollision *c); EntityCollision *deqcoll(void); +Entity *allocentity(void); +void freeentity(Entity *); + extern Entity entitybuffer[2048]; extern int ebufi; extern char map_data[]; extern int map_width, map_height; + +extern Entity *player; + +extern bool shot; +extern int shotx, shoty; |
