This commit is contained in:
Devine Lu Linvega 2017-02-06 09:26:06 -05:00
parent e732715c13
commit 0a8f42d068
3 changed files with 17 additions and 7 deletions

View File

@ -37,7 +37,10 @@ starting_canvas.height = parseInt(starting_canvas.height/40) * 40;
commander.query("~ "+ronin.timestamp());
commander.query("@ "+starting_canvas.render());
commander.query("@ layer=Background");
commander.query("@ #a1a1a1");
commander.query("@ #222");
commander.query("@ layer=Main");
commander.query("> 1 ; > 0,0 ; > 1,1 ; > #ffffff");
commander.query("> 0,0");
commander.query("> 1,1");
commander.query("> 2,2");
commander.query("> #ff0000");
commander.query("~ Ready.");

View File

@ -26,7 +26,7 @@ function Keyboard()
case "ArrowDown": this.key_arrow_down(); break;
case "ArrowLeft": this.key_arrow_left(); break;
case "ArrowRight": this.key_arrow_right(); break;
// case ":": this.key_colon(); break;
case ":": this.key_colon(); break;
case "Escape": this.key_escape(); break;
}
@ -39,6 +39,7 @@ function Keyboard()
case 221: ronin.brush.size_down(); break;
case 38: ronin.surface.layer_up(); break;
case 40: ronin.surface.layer_down(); break;
case 8: this.key_delete(); break;
}
// Passive
@ -89,8 +90,11 @@ function Keyboard()
{
commander.hide();
Object.keys(ronin.modules).forEach(function (key){
ronin.modules[key].key_escape();
});
if(ronin.module){ ronin.module.key_escape(); }
}
this.key_delete = function()
{
if(ronin.module){ ronin.module.key_delete(); }
}
}

View File

@ -99,6 +99,9 @@ function Module(rune)
this.key_escape = function()
{
}
this.key_delete = function()
{
}
}