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)
|
||||
//
|
||||
|
@ -120,12 +121,12 @@
|
|||
__self.sendMessage(msg);
|
||||
};
|
||||
|
||||
getPlayerPos = _getPlayerPos;
|
||||
getMousePos = _getMousePos;
|
||||
putBlock = _putBlock;
|
||||
getBlock = _getBlock;
|
||||
putSign = _putSign;
|
||||
notifyAdministrators = _notifyAdministrators;
|
||||
echo = _echo;
|
||||
global.getPlayerPos = _getPlayerPos;
|
||||
global.getMousePos = _getMousePos;
|
||||
global.putBlock = _putBlock;
|
||||
global.getBlock = _getBlock;
|
||||
global.putSign = _putSign;
|
||||
global.notifyAdministrators = _notifyAdministrators;
|
||||
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
|
||||
//
|
||||
|
|
|
@ -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
|
||||
// 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.
|
||||
// The tiles change color every second creating a strobe-lit dance-floor.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
load(__folder + "../core/_primitives.js");
|
||||
var global = this;
|
||||
load(__folder + "../core/_primitives.js",true);
|
||||
//
|
||||
// Interface
|
||||
// =========
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
load(__folder + "drone.js");
|
||||
//
|
||||
// constructs a medieval fort
|
||||
//
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
load(__folder + "drone.js");
|
||||
|
||||
Drone.extend('sphere', function(block,radius)
|
||||
{
|
||||
var lastRadius = radius;
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
load(__folder + "drone.js");
|
||||
//
|
||||
// constructs a mayan temple
|
||||
//
|
||||
|
|
Reference in a new issue