public cLightMapManager() { _lightMapObjects = new List<iLightMapRenderable>(); _instance = this; }
public void loadLevel(String levelName) { // Very quick and dirty way of removing all objects! _scene = new cScene(); _physics = new cPhysics(); _player = new cPlayer(); _particleEngine = new cParticleEngine(); _effectManager = cEffectManager.Instance; _lightMapManager = new cLightMapManager(); _portalManager = new cPortalManager(); _gameTimer = 0; _scene.loadLevel(levelName); _scene.initLevel(); cCamera.Instance.FocusObject = _player; _player.LivesRemain = 3; _gameState = GAME_STATE.INTRO; }