// Execute an external file to load up its contents
exec("./playGui.gui");
// Create a datablock, a static object that holds data for other objects.
datablock CameraData(Observer) {};
// Called when the game starts.
function onStart() {
// Create some objects with properties inside a SimGroup,
// which contains other objects.
new SimGroup(GameGroup) {
new GroundPlane(TheGround) {
material = BlankWhite;
};
new Sun(TheSun) {
azimuth = 230;
elevation = 45;
color = "1 1 1";
ambient = "0.1 0.1 0.1";
castShadows = true;
};
};
}
// Called when the engine is shutting down.
function onEnd() {
// Delete the objects we created.
GameGroup.delete();
}