From 17ebd1e3857d47ad5fd94e40283ecd468dd83739 Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Wed, 24 Sep 2014 17:20:56 +0200 Subject: Moved common game entity code into parent class --- 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 d872c71..cabe9cf 100644 --- a/game/states/play.js +++ b/game/states/play.js @@ -183,11 +183,11 @@ Play.prototype = { this.pills.add(new BonusPill(this.game, x, y)); break; case 'A': - this.playerA = new Player(this.game, x, y, 'player-a', 0, 'omSound'); + this.playerA = new Player(this.game, x, y, 'player-a', 'omSound'); this.players.add(this.playerA); break; case 'B': - this.playerB = new Player(this.game, x, y, 'player-b', 0, 'nomSound'); + this.playerB = new Player(this.game, x, y, 'player-b', 'nomSound'); this.players.add(this.playerB); break; case '|': -- cgit v1.2.3