Permalink
Browse files

Fixed player spawn points

  • Loading branch information...
1 parent a0eb4d5 commit 522bc5d6f769d1505814a08a0b66e5b9ab44e0a0 @MrJaba committed May 22, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 models/game.rb
  2. +1 −1 public/javascripts/sprite.js
View
@@ -16,7 +16,7 @@ def player_colour
def spawn_point
case players.size
- when 0 then [0,0]
+ when 0 then [0,6]
when 1 then [6,0]
when 2 then [0,6]
when 3 then [6,6]
@@ -50,7 +50,7 @@ Sprite.prototype = {
getTileY:function(newY){
var newY = newY || this.getY();
- var boardY = (newY + (this.getFrameHeight()/2));
+ var boardY = (newY + (MrJaba.Bomberman.Images.visibleTileHeight()/2));
return parseInt(boardY / MrJaba.Bomberman.Images.visibleTileHeight());
},

0 comments on commit 522bc5d

Please sign in to comment.