pipe gen working

This commit is contained in:
s-prechtl 2022-12-14 12:24:45 +01:00
parent f57f2b0153
commit 00cc924a2a
3 changed files with 13 additions and 12 deletions

View file

@ -58,14 +58,16 @@ class Raspberry extends Entity {
public draw(): void {
push();
image(this.image, this.position.x, this.position.y, this.width, this.height);
noFill();
translate(this.position.x, this.position.y);
// rotate((PI/4)*(this.velocity));
image(this.image, 0, 0, this.width, this.height);
if (!this.showHitbox) {
noStroke();
}
rect(
this.position.x,
this.position.y,
0,
0,
this.width,
this.height
);