aboutsummaryrefslogtreecommitdiff
path: root/obj.h
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-10-02 18:47:37 +1000
committerquou <quou@disroot.org>2024-10-02 18:47:37 +1000
commit4d94823a1523db6dc218bdc0d86689616c13599d (patch)
treecfc6dc5bf3cbfff9c0a31b7939441d86116eff29 /obj.h
parent911f57c63ec6de6fb5704c97130b65e676b2c16e (diff)
Gun special
Diffstat (limited to 'obj.h')
-rw-r--r--obj.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/obj.h b/obj.h
index 4f7d57e..ad7098c 100644
--- a/obj.h
+++ b/obj.h
@@ -45,6 +45,16 @@ void update_player(
void ren_player(const Player* p, struct Renderer* r);
typedef struct {
+ int x, y, w;
+ int life;
+} Laser;
+
+void init_laser(Laser* l);
+void activate_laser(Laser* l, int x, int y);
+void update_laser(Laser* l);
+void ren_laser(const Laser* l, struct Renderer* r);
+
+typedef struct {
int x, y;
int frame, anim;
int bmp;