From 8932998cc4282039152ae8233b5fd5026ed47323 Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Mon, 8 Sep 2014 14:45:23 +0200 Subject: Added keyboard controls to HUD --- game/states/play.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'game/states/play.js') diff --git a/game/states/play.js b/game/states/play.js index 9c5a91c..b866370 100644 --- a/game/states/play.js +++ b/game/states/play.js @@ -23,8 +23,8 @@ Play.prototype = { this.gameWon = false; - this.hudA = new Hud(this.game, this.playerA, this.gameWidth-0.5, -0.5, 'spaced-scorefont-a'); - this.hudB = new Hud(this.game, this.playerB, -8.5, -0.5, 'spaced-scorefont-b'); + this.hudA = new Hud(this.game, this.playerA, this.gameWidth-0.5, -0.5, 'spaced-scorefont-a', 'keys-a'); + this.hudB = new Hud(this.game, this.playerB, -8.5, -0.5, 'spaced-scorefont-b', 'keys-b'); //this.game.add.existing(this.hudA); //this.game.add.existing(this.hudB); -- cgit v1.2.3