First working copy for source files.

This commit is contained in:
Devine Lu Linvega
2016-12-19 15:20:47 -07:00
parent 2494946d95
commit 6b7704c14a
4 changed files with 23 additions and 5 deletions

View File

@@ -23,6 +23,7 @@ function Cursor()
{
this.position = position;
this.mode.mouse_down(position);
ronin.widget.update();
}
this.mouse_move = function(position)
@@ -35,5 +36,6 @@ function Cursor()
{
this.position = position;
this.mode.mouse_up(position);
ronin.widget.update();
}
}

View File

@@ -23,4 +23,5 @@ var starting_canvas = new Rect();
starting_canvas.width = window.innerWidth - 200;
starting_canvas.height = window.innerHeight - 200;
commander.query("~ "+ronin.timestamp());
commander.query("@ "+starting_canvas.render());

View File

@@ -41,4 +41,11 @@ function Ronin()
{
return new Position(p.x + parseFloat(ronin.surface.style.left) + parseFloat(ronin.canvas.element.style.left),p.y + parseFloat(ronin.surface.style.top) + parseFloat(ronin.canvas.element.style.top));
}
this.timestamp = function()
{
var currentdate = new Date();
var date = currentdate.getFullYear()+""+(currentdate.getMonth()+1)+""+currentdate.getDate();
return date+" "+currentdate.getHours()+":"+currentdate.getMinutes()+":"+currentdate.getSeconds();
}
}