diff options
author | Victor Gamper <victor@wenzeslaus.de> | 2020-01-26 19:45:20 +0100 |
---|---|---|
committer | Victor Gamper <victor@wenzeslaus.de> | 2020-01-26 19:45:20 +0100 |
commit | 4abb5e4664654591ba8beecf7774b69365c46d14 (patch) | |
tree | d43f81a540360cdc6b6fae8edbc1973038919012 /catch.h | |
parent | dac6b72f8f5fc9ecf564412927dcff7a04d37dc0 (diff) | |
download | c-catch-4abb5e4664654591ba8beecf7774b69365c46d14.tar.gz c-catch-4abb5e4664654591ba8beecf7774b69365c46d14.zip |
Added a collision detection
Diffstat (limited to 'catch.h')
-rw-r--r-- | catch.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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(); |