Exemple #1
0
        public override void setWorld(string str)
        {
            base.setWorld(str);
            if (world == null)
            {
                loadWorld(currentWorldPath);
                return;
            }
            Acting.Enemies.BlobBehavior.fork = false;
            (inputComponent as GameInput).enablePlayBindings();
            GameGUIComponent gamegui = graphicsComponent.guiComponent as GameGUIComponent;

            // If we're in a map with a player (i.e., not credits)
            if ((world as GameWorld).player != null)
            {
                gamegui.current = gamegui.hud;
            }
            else
            {
                gamegui.current = null;
            }

            bossAlive = true;
            world.Start();
        }
 public GameGraphics(MirrorEngine theEngine)
     : base(theEngine, screenSize, FULLSCREEN)
 {
     guiComponent = new GameGUIComponent(this);
 }