summaryrefslogtreecommitdiff
path: root/dat.h
diff options
context:
space:
mode:
authoresquizo <esquizo+noreply@esquizo.net>2026-05-02 14:12:34 -0300
committeresquizo <esquizo+noreply@esquizo.net>2026-05-02 14:12:43 -0300
commit34acd612061792a38aa13e376b20f4b5d4b54302 (patch)
tree1b0afe88f88f9f83c4e979383c8ccbbf4d91b3b1 /dat.h
parentb2a58e06b885c5801814943669d383f0141ddabb (diff)
movida a logica do jogo pro game.c
Diffstat (limited to 'dat.h')
-rw-r--r--dat.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/dat.h b/dat.h
index b3abc1b..76653b6 100644
--- a/dat.h
+++ b/dat.h
@@ -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;