var scene = require('./Utils/Scene').create();
var camera = require('./Utils/Camera').create();
var renderer = require('./Utils/Renderer').create();

var terrain = require('./Terrain').create(scene, camera, renderer);
var sounds = require('./Sounds');
var controls = require('./Controls').create(camera);
var UI = require('./UI');

var render = function() {
    requestAnimationFrame(render);

    renderer.render(scene, camera);
};

render();

var scene = require('./Utils/Scene').create();
var camera = require('./Utils/Camera').create();
var renderer = require('./Utils/Renderer').create();

var terrain = require('./Terrain').create(scene, camera, renderer);
var sounds = require('./Sounds');
var controls = require('./Controls').create(camera);
var UI = require('./UI');

var render = function() {
    requestAnimationFrame(render);

    controls.update();
    renderer.render(scene, camera);
};

render();

Update controls behavior on update
Update controls behavior on update
