Commit 1e2b7768 authored by Terence Martin's avatar Terence Martin

Include KenVector font

This is freely available and my font of choice for nice looking
monospace text.

This font is set as the default font at a set size upon activation of
the game scene, so that we don't have to keep swapping it into the
context.
parent ff660aec
This diff is collapsed.
......@@ -4722,6 +4722,8 @@ var nurdz;
GameScene.prototype.activating = function (previousScene) {
// Let the super work its magic.
_super.prototype.activating.call(this, previousScene);
// Set up what our font should be while this screen is active.
this._renderer.context.font = '30px kenvector_futureregular';
// Set the reference position of the player and computer entities
// to that of the maze, shifted up some cell so that they appear in
// the virtual cell on top of the maze.
......
......@@ -22,6 +22,11 @@ module nurdz.game
implements StateMachineChangeListener,
MazeEventListener
{
/**
* Override the type of our renderer to be a canvas renderer.
*/
protected _renderer : CanvasRenderer;
/**
* Our state machine; this controls what we're doing at any given time.
*/
......@@ -148,6 +153,9 @@ module nurdz.game
// Let the super work its magic.
super.activating (previousScene);
// Set up what our font should be while this screen is active.
this._renderer.context.font = '30px kenvector_futureregular';
// Set the reference position of the player and computer entities
// to that of the maze, shifted up some cell so that they appear in
// the virtual cell on top of the maze.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment