diff options
Diffstat (limited to 'client/index.html')
-rw-r--r-- | client/index.html | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/client/index.html b/client/index.html index 1c20e3d..de444a8 100644 --- a/client/index.html +++ b/client/index.html @@ -342,9 +342,7 @@ drawGFXGround(); drawEntities(); drawMapOver(); - for(var i in Player.list){ - Player.list[i].drawPlayerName(); - } + drawPlayerNames(); drawGFXOver(); //drawScore(); }, 1000/25); @@ -356,6 +354,12 @@ tmxmap.drawLayer("ground",x,y); } + var drawPlayerNames = function(){ + for(var i in Player.list){ + Player.list[i].drawPlayerName(); + } + } + var drawGFXGround = function(){ } |