push pop
This commit is contained in:
parent
a464da424a
commit
e0e7f5bb60
4 changed files with 6 additions and 2 deletions
|
|
@ -51,7 +51,9 @@ abstract class Entity {
|
|||
public abstract update(): void;
|
||||
|
||||
public draw(): void {
|
||||
push();
|
||||
fill(this.fill);
|
||||
rect(this.position.x, this.position.y, this.width, this.height);
|
||||
pop();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue