From f7e4de7c45ed848312690ce6cfb62ae562e8347c Mon Sep 17 00:00:00 2001 From: zlago Date: Mon, 28 Oct 2024 10:27:19 +0100 Subject: pacer enemy [wip] --- src/gun.h | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/gun.h (limited to 'src/gun.h') diff --git a/src/gun.h b/src/gun.h new file mode 100644 index 0000000..6dac3d7 --- /dev/null +++ b/src/gun.h @@ -0,0 +1,7 @@ +#pragma once + +struct gun { + int (*update)(struct gun *self, struct entity *parent, struct entity *target); + int timer, counter; + int x, y; // offset from the parents center +}; -- cgit 1.4.1-2-gfad0