From 4abb5e4664654591ba8beecf7774b69365c46d14 Mon Sep 17 00:00:00 2001 From: Victor Gamper Date: Sun, 26 Jan 2020 19:45:20 +0100 Subject: Added a collision detection --- catch.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'catch.h') diff --git a/catch.h b/catch.h index 9ae7b9b..0019917 100644 --- a/catch.h +++ b/catch.h @@ -40,12 +40,14 @@ struct Cat { }; struct Bird { - int x, y; + float x; + int y; unsigned char type; }; // function predefines extern void gameRoutine(); +extern bool checkCollision(int x1, int y1, int w1, int h1, int x2, int y2, int w2, int h2); // BitmapFontRenderer.c extern void Font_Init(); -- cgit v1.2.3