Commit 653581ee authored by Eben Blaisdell's avatar Eben Blaisdell

message changes

parent 2d4f96b0
......@@ -476,8 +476,8 @@ Block.prototype.onTurn =function (){
funce.exec("onTurn",[],this.interp);
}
Block.prototype.sendMessage = function(dir){
console.log("onMessage");
console.log(dir);
//console.log("onMessage");
//console.log(dir);
messagex = this.x + Block.dx(dir);
messagey = this.y + Block.dy(dir);
if(messagex>=0 && messagey>=0 && messagex<this.game.width && messagey<this.game.height && this.game.board[messagex][messagey] != null) {
......@@ -485,8 +485,8 @@ Block.prototype.sendMessage = function(dir){
}
}
Block.prototype.onMessage = function(dir){
console.log("onMessage");
console.log(dir);
//console.log("onMessage");
//console.log(dir);
funce.exec("onMessage",[dir],this.interp);
}
......
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