Code viewer for World: New World


AB.colck = 10;
AB.maxStep = 10000;
AB.screeshot = 100;

const background = "lightblue";

const FILE = "/uploads/octa1936/1666610840.png";

const ARMY = 100;

const objectsize = 500;

const MAXPOS = 2000;
const startRadius = MAXPOS * 1.5;
const maxRadius = MAXPOS * 5;

ABHandler.MaxCamPos = MAXPOS * 10;

ABWorld.drawCamera = false;

AB.drawcontrol = false;

var armysize = new Array(ARMY);



function loadArmy()
{
    for (var i = 1; i <= armysize; i++ )
    {
        var shape       = new THREE.BoxGeometry ( objectsize, otherside, objectsize );
        var material    = new THREE.MeshBasicMaterial ( { color: "red" } );
        var theobject   = new THREE.Mesh ( shape, material );
        
        ABWorld.scene.add(theobject)
    }
}


    ABWorld.render();
    
	
	AB.world.newRun = function()
	{
		
		ABWorld.init3d  (startRadius, maxRadius, background);
		
		loadArmy();
	};


	AB.world.nextStep = function()		 
	{
		// Code for Three.js re-drawing of objects.  		
	};


	AB.world.endRun = function()
	{
	};