Changed load paths because drone.js is now in same directory.

This commit is contained in:
walterhiggins 2013-01-05 12:24:08 +00:00
parent 004dd4dc1b
commit fc2ea06818
3 changed files with 4 additions and 4 deletions

View file

@ -1,3 +1,5 @@
var scriptDir = $SCRIPT_DIR;
load(scriptDir + "/drone.js"); // assumes cottage.js and drone.js are in same directory
// //
// need to use the drone module to create buildings easily // need to use the drone module to create buildings easily
// it can be done using calls to putBlock(), putSign(), getPlayerPos() and getMousePos() // it can be done using calls to putBlock(), putSign(), getPlayerPos() and getMousePos()
@ -6,8 +8,6 @@
// current script resides. // current script resides.
// $SCRIPT is a special javascript variable whose value is the full name of the current script. // $SCRIPT is a special javascript variable whose value is the full name of the current script.
// //
var scriptDir = $SCRIPT_DIR;
load(scriptDir + "/../drone.js"); // assumes cottage.js and drone.js are in same directory
// //
// usage: // usage:
// [1] to build a cottage at the player's current location or the cross-hairs location... // [1] to build a cottage at the player's current location or the cross-hairs location...

View file

@ -1,10 +1,10 @@
load($SCRIPT_DIR + "/drone.js");
// //
// Create a floor of colored tiles some of which emit light. // Create a floor of colored tiles some of which emit light.
// The tiles change color every second creating a strobe-lit dance-floor. // The tiles change color every second creating a strobe-lit dance-floor.
// //
// See it in action here => http://www.youtube.com/watch?v=UEooBt6NTFo // See it in action here => http://www.youtube.com/watch?v=UEooBt6NTFo
// //
load($SCRIPT_DIR + "/../drone.js");
Drone.extend('dancefloor',function(width,length) Drone.extend('dancefloor',function(width,length)
{ {
if (typeof width == "undefined") if (typeof width == "undefined")

View file

@ -1,4 +1,4 @@
load($SCRIPT_DIR + "/../drone.js"); load($SCRIPT_DIR + "/drone.js");
// //
// constructs a medieval fort // constructs a medieval fort
// //