simplified loading
This commit is contained in:
parent
e4f09c7b37
commit
dc34d2e687
8 changed files with 9 additions and 15 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
var global = this;
|
||||||
//
|
//
|
||||||
// Define these primitive methods used by drone.js (and potentiall others)
|
// Define these primitive methods used by drone.js (and potentiall others)
|
||||||
//
|
//
|
||||||
|
@ -120,12 +121,12 @@
|
||||||
__self.sendMessage(msg);
|
__self.sendMessage(msg);
|
||||||
};
|
};
|
||||||
|
|
||||||
getPlayerPos = _getPlayerPos;
|
global.getPlayerPos = _getPlayerPos;
|
||||||
getMousePos = _getMousePos;
|
global.getMousePos = _getMousePos;
|
||||||
putBlock = _putBlock;
|
global.putBlock = _putBlock;
|
||||||
getBlock = _getBlock;
|
global.getBlock = _getBlock;
|
||||||
putSign = _putSign;
|
global.putSign = _putSign;
|
||||||
notifyAdministrators = _notifyAdministrators;
|
global.notifyAdministrators = _notifyAdministrators;
|
||||||
echo = _echo;
|
global.echo = _echo;
|
||||||
|
|
||||||
}());
|
}());
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
load(__folder + "fort.js");
|
|
||||||
//
|
//
|
||||||
// a castle is just a big wide fort with 4 taller forts at each corner
|
// a castle is just a big wide fort with 4 taller forts at each corner
|
||||||
//
|
//
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
load(__folder + "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()
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
load(__folder + "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.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
load(__folder + "../core/_primitives.js");
|
|
||||||
var global = this;
|
var global = this;
|
||||||
|
load(__folder + "../core/_primitives.js",true);
|
||||||
//
|
//
|
||||||
// Interface
|
// Interface
|
||||||
// =========
|
// =========
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
load(__folder + "drone.js");
|
|
||||||
//
|
//
|
||||||
// constructs a medieval fort
|
// constructs a medieval fort
|
||||||
//
|
//
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
load(__folder + "drone.js");
|
|
||||||
|
|
||||||
Drone.extend('sphere', function(block,radius)
|
Drone.extend('sphere', function(block,radius)
|
||||||
{
|
{
|
||||||
var lastRadius = radius;
|
var lastRadius = radius;
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
load(__folder + "drone.js");
|
|
||||||
//
|
//
|
||||||
// constructs a mayan temple
|
// constructs a mayan temple
|
||||||
//
|
//
|
||||||
|
|
Reference in a new issue