So much stuff happened idek

This commit is contained in:
rain
2023-11-16 15:03:24 -06:00
parent 839d6c2c20
commit 1eef69f514
8 changed files with 126 additions and 62 deletions
+13
View File
@@ -0,0 +1,13 @@
export default {
hitbox(e) {
// This returns the exact coords on the page
let p = e.padding(e.width, e.height);
let box = {
t:this.y + p.t,
b:this.y + this.height - p.b,
l:this.x + p.l,
r:this.x + this.width - p.r
};
return box;
}
}