From d4784f08e7b630ae45db87ea3c6401d42e670225 Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Mon, 23 Jan 2017 16:55:26 -0700 Subject: [PATCH] Removed placeholders from Cursor --- scripts/core/cursor.js | 4 ++-- scripts/core/init.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/core/cursor.js b/scripts/core/cursor.js index 635f928..be1edf5 100644 --- a/scripts/core/cursor.js +++ b/scripts/core/cursor.js @@ -98,8 +98,8 @@ function Cursor(rune) this.magnetic_position = function(position) { - var x = parseInt(position.x / 20) * 20; - var y = parseInt(position.y / 20) * 20; + var x = parseInt(position.x / this.magnetism.width) * this.magnetism.width; + var y = parseInt(position.y / this.magnetism.width) * this.magnetism.width; return new Position(x,y); } diff --git a/scripts/core/init.js b/scripts/core/init.js index b44df3a..d2e85f9 100644 --- a/scripts/core/init.js +++ b/scripts/core/init.js @@ -36,7 +36,7 @@ starting_canvas.height = parseInt(starting_canvas.height/40) * 40; commander.query("~ "+ronin.timestamp()); commander.query("# "+starting_canvas.render()); commander.query("# layer=Background"); -commander.query("# #ff0000"); +commander.query("# #a1a1a1"); commander.query("# layer=Main"); commander.query("> 1 ; > 0,0 ; > 1,1 ; > #ffffff"); commander.query("~ Ready."); \ No newline at end of file