[ADD] player gameover check

This commit is contained in:
SemvdH
2021-08-23 18:12:07 +02:00
parent 043865b601
commit e938165647
2 changed files with 28 additions and 4 deletions

View File

@@ -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 &&