Commit 46981d75 authored by Eben Blaisdell's avatar Eben Blaisdell

testing

parent 9dc02b2c
......@@ -463,9 +463,11 @@ Block.prototype.isOpen = function(dir){
return "false";
}
dir = this.untransformDir(dir);
//console.log(dir);
console.log(dir);
newx = this.x + Block.dx(dir);
newy = this.y + Block.dy(dir);
console.log(newx);
console.log(newy);
if(newx<0 || newy<0 || newx>=this.game.width || newy>=this.game.height) {
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment