Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed player spawn points

  • Loading branch information...
commit 522bc5d6f769d1505814a08a0b66e5b9ab44e0a0 1 parent a0eb4d5
@MrJaba authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  models/game.rb
  2. +1 −1  public/javascripts/sprite.js
View
2  models/game.rb
@@ -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]
View
2  public/javascripts/sprite.js
@@ -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());
},
Please sign in to comment.
Something went wrong with that request. Please try again.