Commit 7c198a1d authored by Eben Blaisdell's avatar Eben Blaisdell

orientation and 2 actions test

parent 7a15a91f
......@@ -37,7 +37,7 @@ function exec(func,args,interp,callingScope,parentScope){
}
callingScope = callingScope || interp.globalScope;
parentScope = parentScope || interp.globalScope;
console.log(func);
//console.log(func);
//console.log(callingScope);
//console.log(parentScope);
curScope = {
......
......@@ -444,10 +444,10 @@ Block.prototype.untransformDir = function(dir){
return (4 + dir - this.orient)%4;
}
Block.prototype.isOpen = function(dir){
console.log("isOpen");
console.log(dir);
//console.log("isOpen");
//console.log(dir);
dir = this.untransformDir(dir);
console.log(dir);
//console.log(dir);
newx = this.x + Block.dx(dir);
newy = this.y + Block.dy(dir);
if(newx<0 || newy<0 || newx>=this.game.width || newy>=this.game.height) {
......
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