collision workey

This commit is contained in:
s-prechtl 2022-12-13 10:35:00 +01:00
parent a8681c0eb4
commit a464da424a
5 changed files with 33 additions and 10 deletions

View file

@ -59,7 +59,10 @@ class Raspberry extends Entity {
public draw(): void {
image(this.image, this.position.x, this.position.y, this.width, this.height);
noFill();
noStroke();
strokeWeight(50);
if (!this.showHitbox) {
noStroke();
}
rect(
this.position.x,
this.position.y,