diff options
author | Justin Worthe <justin.worthe@gmail.com> | 2014-09-01 07:55:06 +0200 |
---|---|---|
committer | Justin Worthe <justin.worthe@gmail.com> | 2014-09-01 07:55:06 +0200 |
commit | b127c30374c2dcc283e37fa3038b8de2316cad73 (patch) | |
tree | 057d071cf1abb23d87e73e8d23b82e85c82c2242 /game | |
parent | a3a11ded6b2e1febf0416aaecfc393c7626ccdac (diff) |
Added invisible walls to prevent stupid moves after respawn
Diffstat (limited to 'game')
-rw-r--r-- | game/states/play.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/game/states/play.js b/game/states/play.js index 14d8335..617176d 100644 --- a/game/states/play.js +++ b/game/states/play.js @@ -189,7 +189,10 @@ Play.prototype = { this.playerB = new Player(this.game, x, y, 'player-b', 0, 'nomSound'); this.players.add(this.playerB); break; - } + case '|': + this.addToMap(x, y); + break; + } } } |