summaryrefslogtreecommitdiff
path: root/catch.h
diff options
context:
space:
mode:
authorVictor Gamper <victor@wenzeslaus.de>2020-01-26 19:45:20 +0100
committerVictor Gamper <victor@wenzeslaus.de>2020-01-26 19:45:20 +0100
commit4abb5e4664654591ba8beecf7774b69365c46d14 (patch)
treed43f81a540360cdc6b6fae8edbc1973038919012 /catch.h
parentdac6b72f8f5fc9ecf564412927dcff7a04d37dc0 (diff)
downloadc-catch-4abb5e4664654591ba8beecf7774b69365c46d14.tar.gz
c-catch-4abb5e4664654591ba8beecf7774b69365c46d14.zip
Added a collision detection
Diffstat (limited to 'catch.h')
-rw-r--r--catch.h4
1 files changed, 3 insertions, 1 deletions
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();