Progress on magnet
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user