From 34acd612061792a38aa13e376b20f4b5d4b54302 Mon Sep 17 00:00:00 2001 From: esquizo Date: Sat, 2 May 2026 14:12:34 -0300 Subject: movida a logica do jogo pro game.c --- dat.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'dat.h') 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; -- cgit v1.2.3