[ADD] player gameover check
This commit is contained in:
@@ -11,7 +11,6 @@ float toolbox_random_float(float a, float b)
|
||||
|
||||
uint8_t toolbox_is_collision(float x1, float y1, float width1, float heigth1, float x2, float y2, float width2, float height2)
|
||||
{
|
||||
//TODO make it work?
|
||||
return x1 - width1 / 2 < x2 + width2 / 2 &&
|
||||
x1 + width1 / 2 > x2 - width2 / 2 &&
|
||||
y1 - heigth1 / 2 < y2 + height2 / 2 &&
|
||||
|
||||
Reference in New Issue
Block a user