feat: Added basic shooting

This commit is contained in:
2025-10-05 22:35:34 +01:00
parent 3eb8683ce3
commit 319bb441ed
10 changed files with 39 additions and 13 deletions

View File

@@ -34,3 +34,7 @@ bool AABB_Slab(V2f origin, V2f point, AABB a)
return tMax >= tMin;
}
V2f AABB_Centre(AABB a) {
return V2F(a.pos.x + a.size.x/2, a.pos.y + a.size.y/2);
}