This commit is contained in:
s-prechtl 2022-12-13 10:36:52 +01:00
parent a464da424a
commit e0e7f5bb60
4 changed files with 6 additions and 2 deletions

View file

@ -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 {