collision workey
This commit is contained in:
parent
a8681c0eb4
commit
a464da424a
5 changed files with 33 additions and 10 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue