diff options
Diffstat (limited to 'desktop/core/pico.js')
-rw-r--r-- | desktop/core/pico.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/desktop/core/pico.js b/desktop/core/pico.js index 1ca12cb..5daeafd 100644 --- a/desktop/core/pico.js +++ b/desktop/core/pico.js @@ -156,6 +156,19 @@ function Pico (w, h) { } } + this.removeBlock = function(x,y,w,h) + { + let _y = y + while(_y < y+h){ + let _x = x + while(_x < x+w){ + this.remove(_x,_y) + _x++ + } + _y++ + } + } + // Locks this.isLocked = function (x, y) { |