summaryrefslogtreecommitdiffstats
path: root/balls.h
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2024-09-25 17:06:56 -0400
committerSam Anthony <sam@samanthony.xyz>2024-09-25 17:06:56 -0400
commit50f5164c529d57aeaf5c435b33683afabfc25c40 (patch)
tree8af3aac1896196fceabc2daa5134e7b298d6c774 /balls.h
parent89e07aae62dae995faa7540fc38e66fa0c0f7369 (diff)
downloadballs-50f5164c529d57aeaf5c435b33683afabfc25c40.zip
refactor collisions
Diffstat (limited to 'balls.h')
-rw-r--r--balls.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/balls.h b/balls.h
index 8e66ae0..69adde9 100644
--- a/balls.h
+++ b/balls.h
@@ -1,5 +1,6 @@
#include <u.h>
#include <libc.h>
+#include <stdio.h>
#include <draw.h>
#include <cursor.h>
@@ -31,4 +32,6 @@ Point ptaddv(Point p, Vec v);
Vec V(double x, double y);
Vec Vpt(Point p, Point q);
-int iscollision(Point p, Point q); \ No newline at end of file
+int iscollision(Point p, Point q);
+void collideball(Ball *b1, const Ball *b2);
+void collidewall(Ball *b, Rectangle wall);