Last active
August 29, 2015 14:16
-
-
Save walterhiggins/14141ef13e536aa93bf4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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