Added brush size triggers with brackets
This commit is contained in:
@@ -18,6 +18,8 @@ function Keyboard()
|
||||
case 13: this.key_enter(); break;
|
||||
case 186: this.key_colon(); break;
|
||||
case 27: this.key_escape(); break;
|
||||
case 219: ronin.brush.size -= ronin.brush.size > 1 ? 1 : 0;ronin.widget.update(); break;
|
||||
case 221: ronin.brush.size += 1;ronin.widget.update(); break;
|
||||
}
|
||||
|
||||
// Passive
|
||||
|
||||
@@ -74,6 +74,10 @@ function Brush(rune)
|
||||
|
||||
return this.pointers.length > 0 ? "Brush "+this.size+", "+this.pointers.length+" pointers" : "No Pointers";
|
||||
}
|
||||
|
||||
// Commands
|
||||
|
||||
// this.
|
||||
|
||||
// Cursor
|
||||
|
||||
|
||||
@@ -20,8 +20,10 @@ function Pointer(offset = new Position(), color = new Color('000000'))
|
||||
this.draw = function()
|
||||
{
|
||||
if(!this.position_prev){this.position_prev = this.position(); }
|
||||
|
||||
|
||||
var position = this.position();
|
||||
|
||||
if(position.distance_to(this.position_prev) < 2){ return; } // Quickfix against stairs
|
||||
|
||||
this.distance += position.distance_to(this.position_prev);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user