Progress on magnet

This commit is contained in:
Devine Lu Linvega
2017-09-28 11:25:26 +13:00
parent 22e364ef5a
commit 85d0b4b3a2
4 changed files with 19 additions and 12 deletions

View File

@@ -4,8 +4,19 @@ function Magnet()
this.settings = {size:15,rate:4};
this.methods.lock = function()
this.methods.lock = function(q)
{
var size = parseInt(q);
if(size < 5){ return; }
console.log(size)
ronin.grid.draw(size);
}
this.methods.unlock = function(q)
{
console.log(q)
}
}