Пример #1
0
        protected override void Initialize()
        {
            Direction.Init();

            fpsCounter = new FpsCounter(game);
            Components.Add(fpsCounter);
            fpsCounter.DrawOrder = 0;
            //fpsCounter.Enabled = true;

            soundEffectManager = new SoundEffectManager(game);
            Components.Add(soundEffectManager);
            soundEffectManager.DrawOrder = 1;
            //soundEffectManager.DrawDebugInfo = true;

            debugMonitor = new DebugMonitor(game);
            Components.Add(debugMonitor);
            debugMonitor.Enabled  = true;
            debugMonitor.DrawBox  = true;
            debugMonitor.Position = Direction.SouthEast;

            currentGameState = new TitleScreen(TitleScreenEventHandler, true);

            base.Initialize();
        }
Пример #2
0
        protected override void Initialize()
        {
            Direction.Init();

            fpsCounter = new FpsCounter(game);
            Components.Add(fpsCounter);
            fpsCounter.DrawOrder = 0;
            //fpsCounter.Enabled = true;

            soundEffectManager = new SoundEffectManager(game);
            Components.Add(soundEffectManager);
            soundEffectManager.DrawOrder = 1;
            //soundEffectManager.DrawDebugInfo = true;

            debugMonitor = new DebugMonitor(game);
            Components.Add(debugMonitor);
            debugMonitor.Enabled = true;
            debugMonitor.DrawBox = true;
            debugMonitor.Position = Direction.SouthEast;

            currentGameState = new TitleScreen(TitleScreenEventHandler, true);

            base.Initialize();
        }