push pop
This commit is contained in:
parent
a464da424a
commit
e0e7f5bb60
4 changed files with 6 additions and 2 deletions
|
|
@ -20,6 +20,7 @@ class Pipe extends Entity implements Collidable {
|
|||
}
|
||||
|
||||
public draw(): void {
|
||||
push();
|
||||
image(this.image, this.position.x, this.position.y, this.width, this.height);
|
||||
noFill();
|
||||
rect(
|
||||
|
|
@ -28,6 +29,7 @@ class Pipe extends Entity implements Collidable {
|
|||
this.width,
|
||||
this.height
|
||||
);
|
||||
pop();
|
||||
}
|
||||
|
||||
collides(o: Entity): boolean {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue