example skyscraper
This commit is contained in:
parent
51374ac1db
commit
c32f8aab5f
1 changed files with 11 additions and 0 deletions
11
src/main/javascript/drone/contrib/skyscraper-example.js
Normal file
11
src/main/javascript/drone/contrib/skyscraper-example.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
Drone.extend('skyscraper',function(floors){
|
||||
this.chkpt('skyscraper');
|
||||
for (var i = 0;i < floors; i++)
|
||||
{
|
||||
this.box(blocks.iron,20,1,20)
|
||||
.up()
|
||||
.box0(blocks.glass_pane,20,3,20);
|
||||
this.up(3);
|
||||
}
|
||||
this.move('skyscraper');
|
||||
});
|
Reference in a new issue