Commit 9b6097ad authored by Eben Blaisdell's avatar Eben Blaisdell

dev change

parent ef74a64c
......@@ -530,7 +530,7 @@ Block.prototype.sendMessage = function(dir, msg){
return;
}
this.messages--;
console.log("msg",msg)
//console.log("msg",msg)
dir = this.untransformDir(dir);
messagex = this.x + Block.dx(dir);
messagey = this.y + Block.dy(dir);
......@@ -539,6 +539,7 @@ Block.prototype.sendMessage = function(dir, msg){
}
}
Block.prototype.onMessage = function(dir, msg){
console.log('onMessage("'+this.transformDir(dir)+'")')
this.interp.doString('onMessage("'+this.transformDir(dir)+'")', luaCallback);
this.doActions()
}
......@@ -554,7 +555,7 @@ Block.prototype.maybeAttack = function(dir){
}
Block.prototype.maybeSendMessage = function(dir, msg){
if(dir>=0){
console.log("msg in NodeJS", msg)
//console.log("msg in NodeJS", msg)
this.sendMessage(dir, msg)
}
}
......
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