push pop
This commit is contained in:
parent
a464da424a
commit
e0e7f5bb60
4 changed files with 6 additions and 2 deletions
|
|
@ -57,9 +57,9 @@ class Raspberry extends Entity {
|
|||
}
|
||||
|
||||
public draw(): void {
|
||||
push();
|
||||
image(this.image, this.position.x, this.position.y, this.width, this.height);
|
||||
noFill();
|
||||
strokeWeight(50);
|
||||
if (!this.showHitbox) {
|
||||
noStroke();
|
||||
}
|
||||
|
|
@ -69,5 +69,6 @@ class Raspberry extends Entity {
|
|||
this.width,
|
||||
this.height
|
||||
);
|
||||
pop();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue