Skip to content

Commit

Permalink
簡単な操作説明を画面に表示
Browse files Browse the repository at this point in the history
  • Loading branch information
kazakami committed Dec 15, 2018
1 parent b34bbbb commit 3baff40
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions examples/terrain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,14 @@ class GameScene extends Scene {
};
this.onContextmenu = (e) => { e.preventDefault(); };
}
public Update() {
return;
public DrawText() {
this.core.ctx.font = "20px serif";
this.core.DrawText(
"Press mouse left button to raise the terrain.",
-this.core.windowSizeX / 2, this.core.windowSizeY / 2);
this.core.DrawText(
"Press \"q\" and press mouse left button to lower the terrain.",
-this.core.windowSizeX / 2, this.core.windowSizeY / 2 - 20);
}
}

Expand Down

0 comments on commit 3baff40

Please sign in to comment.