From 8a298953c22f9c2fc1632efe67cd7b8d4159c995 Mon Sep 17 00:00:00 2001 From: walterhiggins Date: Thu, 3 Jan 2013 20:16:58 +0000 Subject: [PATCH] untabified. --- example_scripts/dancefloor.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/example_scripts/dancefloor.js b/example_scripts/dancefloor.js index 07ffc15..e8534a3 100644 --- a/example_scripts/dancefloor.js +++ b/example_scripts/dancefloor.js @@ -5,25 +5,25 @@ Drone.extend('dancefloor',function(width,length) width = 5; if (typeof length == "undefined") length = width; - // - // create a separate Drone object to lay down disco tiles - // + // + // create a separate Drone object to lay down disco tiles + // var disco = new Drone(this.x,this.y, this.z, this.dir); - // + // // under-floor lighting - // + // disco.down().box(89,width,1,length).up(); var floorTiles = [35,35,'35:1','35:2','35:3','35:4','35:4','35:4','35:6',20,20]; // // strobe gets called in a java thread // - var strobe = function(){ + var strobe = function(){ while(true){ - disco.rand(floorTiles,width,1,length); + disco.rand(floorTiles,width,1,length); java.lang.Thread.sleep(1000); } - }; - var thread = new java.lang.Thread(strobe); + }; + var thread = new java.lang.Thread(strobe); thread.start(); return this; });