Code viewer for World: New World

function World() 
{ 
    var scene = new THREE.Scene(); //CREATE SCENE
    var renderer = new THREE.WebGLRenderer();
    var meshFloor;
	this.newRun = function()
	{
	    render();
	    ground();
		// Code for Three.js initial drawing of objects.
		// Should include one of:
 		// ABWorld.init2d ( arguments ); 	
 		// ABWorld.init3d ( arguments ); 	
	};


	this.takeAction = function ( action )		 
	{
		// Code for Three.js re-drawing of objects.  
	};


	this.endRun = function()
	{
	};


	this.getState = function()
	{
	  return ( 0 );  				 
	};

	
	this.getScore = function()
 	{
	  return ( 0 );		
	};
    
    function render(){
	renderer.setSize(window.innerWidth, window.innerHeight);
	document.body.appendChild(renderer.domElement);
    }
    
    function ground(){
        meshFloor = new THREE.Mesh(
    	new THREE.PlaneGeometry(200,100),
    	new THREE.MeshBasicMaterial({ color: "#e0e1e2"})) ;
    	
    	var edgeHelper = new THREE.EdgesHelper(meshFloor);
    	edgeHelper.material.color.set( 0xff4444 );
        scene.add(edgeHelper);
        
    //	meshFloor.rotation.x -= Math.PI / 2; // Rotate the plane 90 degrees as if you don't do this it'll be like a tv screen.
    	scene.add(meshFloor);
    }

}