simplified loading

This commit is contained in:
walterhiggins 2013-01-19 17:17:52 +00:00
parent e4f09c7b37
commit dc34d2e687
8 changed files with 9 additions and 15 deletions

View file

@ -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;
}());

View file

@ -1,4 +1,3 @@
load(__folder + "fort.js");
//
// a castle is just a big wide fort with 4 taller forts at each corner
//

View file

@ -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()

View file

@ -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.

View file

@ -1,5 +1,5 @@
load(__folder + "../core/_primitives.js");
var global = this;
load(__folder + "../core/_primitives.js",true);
//
// Interface
// =========

View file

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

View file

@ -1,5 +1,3 @@
load(__folder + "drone.js");
Drone.extend('sphere', function(block,radius)
{
var lastRadius = radius;

View file

@ -1,4 +1,3 @@
load(__folder + "drone.js");
//
// constructs a mayan temple
//