Skip to content

Commit

Permalink
Reset players layer at the end of the game.
Browse files Browse the repository at this point in the history
  • Loading branch information
farhadi committed Sep 12, 2011
1 parent 11cdc50 commit c28be10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ function Game(){

socket.on('end',function(rank,score,time,topScores){
socket.disconnect();
layers.players.translate([players[myId].x - 405, players[myId].y - 250]);
players[myId].shape.remove();
delete players[myId];
myId = -1;
Expand Down

0 comments on commit c28be10

Please sign in to comment.