Exemple #1
0
        protected override void Initialize()
        {
            // Set the game resolution
            MiResolution.SetVirtualResolution(1200, 900);
            MiResolution.SetResolution(800, 600, false);

            // Initialize Input Handler
            inputHandler = new MicycleInputHandler(this);

            // Initialize screens
            startScreen = new MiMenuScreen(this);

            // Set active screen
            ToDraw.AddLast(startScreen);
            ToUpdate.Push(startScreen);

            ScriptEngine.ExecuteScript(new MiScript(startScreen.EntrySequence));
            base.Initialize();
        }
Exemple #2
0
 public bool ContainsScreen(MiScreen screen)
 {
     return(toUpdate.Contains(screen));
 }
Exemple #3
0
 public void PushScreen(MiScreen screen)
 {
     toUpdate.Push(screen);
     toDraw.AddLast(screen);
     inputHandler.Focused = screen;
 }