aboutsummaryrefslogtreecommitdiff
path: root/obj.h
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-10-02 21:25:33 +1000
committerquou <quou@disroot.org>2024-10-02 21:25:33 +1000
commitb645edebd21d2d93256b52ee0cd2063395908a74 (patch)
tree13a432f3935d565511ccdce2581819bb38f0b969 /obj.h
parent3d12118b3a2447b3e1a9e87b81d702f13ad5c7ab (diff)
Take damage when an enemy touches the player
Diffstat (limited to 'obj.h')
-rw-r--r--obj.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/obj.h b/obj.h
index f29d5a4..98f2ebf 100644
--- a/obj.h
+++ b/obj.h
@@ -95,6 +95,7 @@ typedef struct {
void init_enemy(Enemy* e, Enemy_Type t, int x, int y);
int update_enemy(Enemy* e, struct World* w);
void ren_enemy(const Enemy* e, struct Renderer* r);
+void get_enemy_rect(Enemy_Type t, Rect* d);
typedef struct {
Rect r;