From fb104368dd33b66e0575dcc0327cbae7046a4e1e Mon Sep 17 00:00:00 2001 From: quou Date: Fri, 5 May 2023 13:44:23 +1000 Subject: Add killing enemies. --- rect.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'rect.h') diff --git a/rect.h b/rect.h index 6f45705..bf494b2 100644 --- a/rect.h +++ b/rect.h @@ -7,4 +7,17 @@ typedef struct { Rectangle make_rect(int x, int y, int w, int h); +int rects_overlap(const Rectangle* a, const Rectangle* b); + +int rects_overlap2( + int x0, + int y0, + int w0, + int h0, + int x1, + int y1, + int w1, + int h1 +); + #endif -- cgit v1.2.3-54-g00ecf