/// <summary> /// Called when starting the scene /// </summary> public override void OnStart() { Current = this; TriangleRenderPass = new BasicRenderPass(Graphics); ClearEffect = new ClearEffect(Graphics, TriangleRenderPass); ClearEffect.Start(); ClearEffect.ClearColor = new ClearColorValue(0.5f, 0.7f, 0.9f); TimerHandler = new TimerHandler(this); PlayerHandler = new PlayerInterfaceHandler(1); BulletHandler = new BulletHandler(this, 200000, ClearEffect); BulletHandler.Start(); EnemyHandler = new EnemyHandler(this, 10000, BulletHandler.SpriteEffect); EnemyHandler.Start(); ScriptHandler.ExecuteFile("demo.nut"); ScriptHandler.CallGlobal("main"); }