Skip to content

Instantly share code, notes, and snippets.

@walterhiggins
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save walterhiggins/14141ef13e536aa93bf4 to your computer and use it in GitHub Desktop.
Save walterhiggins/14141ef13e536aa93bf4 to your computer and use it in GitHub Desktop.
var Drone = require('drone');
var blocks = require('blocks');
function skyscraper( floors ) {
var i = 0;
if ( typeof floors == 'undefined' ) {
floors = 10;
}
this.chkpt('skyscraper');
for ( i = 0; i < floors; i++ ) {
this
.box( blocks.iron, 20, 1, 20)
.up()
.box0(blocks.glass_pane, 20, 3, 20)
.up(3);
}
this.move('skyscraper');
}
Drone.extend( skyscraper );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment