From 99ab9bd22be2506c23d1e379f35583ddab4eadf6 Mon Sep 17 00:00:00 2001 From: zlago Date: Fri, 4 Oct 2024 21:38:14 +0200 Subject: map transitions --- src/entity.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/entity.h') diff --git a/src/entity.h b/src/entity.h index 354fbc1..fe76feb 100644 --- a/src/entity.h +++ b/src/entity.h @@ -9,6 +9,7 @@ struct entity { int (*update)(struct entity *self); int (*hurt)(struct entity *self, int damage); int (*draw)(struct entity *self, int camx, int camy); + void (*free)(struct entity *self); int x, y; // unsigned results in a bunch of weird edge cases struct velocity { signed x, y; @@ -29,3 +30,13 @@ struct entity { void *texture; void *ext; }; + +struct warp { + int (*update)(struct warp *); + unsigned x, y; + unsigned w, h; + unsigned tox, toy; + struct hitbox hitbox; + unsigned timer; + void *ext; +}; -- cgit 1.4.1-2-gfad0