Skip to content

Commit

Permalink
fix: playground.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ultraviolet-jordan committed Jan 6, 2024
1 parent 80d493b commit dc6523e
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/js/playground.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,27 +173,27 @@ class Playground extends GameShell {

// controls
let leftY = this.b12.fontHeight;
this.b12.blitOpaque(0, leftY, `Model: ${this.model.id}`, 0xFFFF00);
this.b12.draw(0, leftY, `Model: ${this.model.id}`, 0xFFFF00);
leftY += this.b12.fontHeight;
this.b12.blitOpaque(0, leftY, `Controls:`, 0xFFFF00);
this.b12.draw(0, leftY, `Controls:`, 0xFFFF00);
leftY += this.b12.fontHeight;
this.b12.blitOpaque(0, leftY, `r - reset camera and model rotation + movement speed`, 0xFFFF00);
this.b12.draw(0, leftY, `r - reset camera and model rotation + movement speed`, 0xFFFF00);
leftY += this.b12.fontHeight;
this.b12.blitOpaque(0, leftY, `1 and 2 - change model`, 0xFFFF00);
this.b12.draw(0, leftY, `1 and 2 - change model`, 0xFFFF00);
leftY += this.b12.fontHeight;
this.b12.blitOpaque(0, leftY, `[ and ] - adjust movement speed`, 0xFFFF00);
this.b12.draw(0, leftY, `[ and ] - adjust movement speed`, 0xFFFF00);
leftY += this.b12.fontHeight;
this.b12.blitOpaque(0, leftY, `left and right - adjust model yaw`, 0xFFFF00);
this.b12.draw(0, leftY, `left and right - adjust model yaw`, 0xFFFF00);
leftY += this.b12.fontHeight;
this.b12.blitOpaque(0, leftY, `up and down - adjust model pitch`, 0xFFFF00);
this.b12.draw(0, leftY, `up and down - adjust model pitch`, 0xFFFF00);
leftY += this.b12.fontHeight;
this.b12.blitOpaque(0, leftY, `. and / - adjust model roll`, 0xFFFF00);
this.b12.draw(0, leftY, `. and / - adjust model roll`, 0xFFFF00);
leftY += this.b12.fontHeight;
this.b12.blitOpaque(0, leftY, `w and s - move camera along z axis`, 0xFFFF00);
this.b12.draw(0, leftY, `w and s - move camera along z axis`, 0xFFFF00);
leftY += this.b12.fontHeight;
this.b12.blitOpaque(0, leftY, `a and d - move camera along x axis`, 0xFFFF00);
this.b12.draw(0, leftY, `a and d - move camera along x axis`, 0xFFFF00);
leftY += this.b12.fontHeight;
this.b12.blitOpaque(0, leftY, `q and e - move camera along y axis`, 0xFFFF00);
this.b12.draw(0, leftY, `q and e - move camera along y axis`, 0xFFFF00);

this.drawArea.draw(0, 0);
}
Expand Down

0 comments on commit dc6523e

Please sign in to comment.