private void World_Change(Object sender, EventArgs eventArgs)
        {
            WorldManager worldManager = (WorldManager)sender;

            healthBars.Clear();
            actors.Clear();
            tutorialGui.Clear();
            if (worldManager.curWorld != null)
            {
                this.curWorld = worldManager.curWorld;
                if (worldManager.curWorld.isTutorial)
                {
                    WorldLabel walkUpLabel = new WorldLabel(spriteFont, "press w to walk up");
                    walkUpLabel.dimensions.X = 500;
                    walkUpLabel.dimensions.Y = 500;
                    tutorialGui.Add(walkUpLabel);
                    WorldLabel walkRightLabel = new WorldLabel(spriteFont, "press d to walk right");
                    walkRightLabel.dimensions.X = 1100;
                    walkRightLabel.dimensions.Y = 700;
                    tutorialGui.Add(walkRightLabel);
                    WorldLabel walkDownLabel = new WorldLabel(spriteFont, "press s to walk down");
                    walkDownLabel.dimensions.X = 1800;
                    walkDownLabel.dimensions.Y = 400;
                    tutorialGui.Add(walkDownLabel);
                    WorldLabel walkLeftLabel = new WorldLabel(spriteFont, "press a to walk left");
                    walkLeftLabel.dimensions.X = 1100;
                    walkLeftLabel.dimensions.Y = 1200;
                    tutorialGui.Add(walkLeftLabel);
                    WorldLabel followLabel = new WorldLabel(spriteFont, "Your character faces the mouse cursor");
                    followLabel.dimensions.X = 400;
                    followLabel.dimensions.Y = 1800;
                    tutorialGui.Add(followLabel);
                    WorldLabel pickUpLabel = new WorldLabel(spriteFont, "press e to pickup weapons, keys, and health potions");
                    pickUpLabel.dimensions.X = -450;
                    pickUpLabel.dimensions.Y = 1000;
                    tutorialGui.Add(pickUpLabel);
                    WorldLabel weaponLabel = new WorldLabel(spriteFont, "press q to switch between two picked up weapons");
                    weaponLabel.dimensions.X = -450;
                    weaponLabel.dimensions.Y = 800;
                    tutorialGui.Add(weaponLabel);
                    WorldLabel doorLabel = new WorldLabel(spriteFont, "press e to unlock doors with keys");
                    doorLabel.dimensions.X = -450;
                    doorLabel.dimensions.Y = 600;
                    tutorialGui.Add(doorLabel);
                    WorldLabel attackLabel = new WorldLabel(spriteFont, "click the left mouse button to attack");
                    attackLabel.dimensions.X = -450;
                    attackLabel.dimensions.Y = 1500;
                    tutorialGui.Add(attackLabel);
                    WorldLabel useLabel = new WorldLabel(spriteFont, "press e when you are standing over stairs to go down a floor");
                    useLabel.dimensions.X = -200;
                    useLabel.dimensions.Y = 50;
                    tutorialGui.Add(useLabel);
                }
            }
        }
Beispiel #2
0
        private void World_Change(Object sender, EventArgs eventArgs)
        {

            WorldManager worldManager = (WorldManager)sender;
            healthBars.Clear();
            actors.Clear();
            tutorialGui.Clear();
            if (worldManager.curWorld != null)
            {
                this.curWorld = worldManager.curWorld;
                if (worldManager.curWorld.isTutorial)
                {
                    WorldLabel walkUpLabel = new WorldLabel(spriteFont, "press w to walk up");
                    walkUpLabel.dimensions.X = 500;
                    walkUpLabel.dimensions.Y = 500;
                    tutorialGui.Add(walkUpLabel);
                    WorldLabel walkRightLabel = new WorldLabel(spriteFont, "press d to walk right");
                    walkRightLabel.dimensions.X = 1100;
                    walkRightLabel.dimensions.Y = 700;
                    tutorialGui.Add(walkRightLabel);
                    WorldLabel walkDownLabel = new WorldLabel(spriteFont, "press s to walk down");
                    walkDownLabel.dimensions.X = 1800;
                    walkDownLabel.dimensions.Y = 400;
                    tutorialGui.Add(walkDownLabel);
                    WorldLabel walkLeftLabel = new WorldLabel(spriteFont, "press a to walk left");
                    walkLeftLabel.dimensions.X = 1100;
                    walkLeftLabel.dimensions.Y = 1200;
                    tutorialGui.Add(walkLeftLabel);
                    WorldLabel followLabel = new WorldLabel(spriteFont, "Your character faces the mouse cursor");
                    followLabel.dimensions.X = 400;
                    followLabel.dimensions.Y = 1800;
                    tutorialGui.Add(followLabel);
                    WorldLabel escapeLabel = new WorldLabel(spriteFont, "Press escape to pause");
                    escapeLabel.dimensions.X = 0;
                    escapeLabel.dimensions.Y = 1800;
                    tutorialGui.Add(escapeLabel);
                    WorldLabel pickUpLabel = new WorldLabel(spriteFont, "press e to pickup weapons, keys, and health potions");
                    pickUpLabel.dimensions.X = -450;
                    pickUpLabel.dimensions.Y = 1000;
                    tutorialGui.Add(pickUpLabel);
                    WorldLabel weaponLabel = new WorldLabel(spriteFont, "press q to switch between two picked up weapons");
                    weaponLabel.dimensions.X = -450;
                    weaponLabel.dimensions.Y = 800;
                    tutorialGui.Add(weaponLabel);
                    WorldLabel doorLabel = new WorldLabel(spriteFont, "press e to unlock doors with keys");
                    doorLabel.dimensions.X = -450;
                    doorLabel.dimensions.Y = 600;
                    tutorialGui.Add(doorLabel);
                    WorldLabel attackLabel = new WorldLabel(spriteFont, "click the left mouse button to attack");
                    attackLabel.dimensions.X = -450;
                    attackLabel.dimensions.Y = 1500;
                    tutorialGui.Add(attackLabel);
                    WorldLabel useLabel = new WorldLabel(spriteFont, "press e when you are standing over stairs to go down a floor");
                    useLabel.dimensions.X = -200;
                    useLabel.dimensions.Y = 50;
                    tutorialGui.Add(useLabel);
                }
            }
        }
        private void World_Change(Object sender, EventArgs eventArgs)
        {

            WorldManager worldManager = (WorldManager)sender;
            healthBars.Clear();
            actors.Clear();
            tutorialGui.Clear();
            if (worldManager.curWorld != null)
            {
                this.curWorld = worldManager.curWorld;
                if (worldManager.curLevel == 1)
                {
                    WorldLabel walkUpLabel = new WorldLabel(spriteFont, "press w to walk up");
                    walkUpLabel.dimensions.X = 500;
                    walkUpLabel.dimensions.Y = 500;
                    tutorialGui.Add(walkUpLabel);
                    WorldLabel walkRightLabel = new WorldLabel(spriteFont, "press d to walk right");
                    walkRightLabel.dimensions.X = 1100;
                    walkRightLabel.dimensions.Y = 700;
                    tutorialGui.Add(walkRightLabel);
                    WorldLabel walkDownLabel = new WorldLabel(spriteFont, "press s to walk down");
                    walkDownLabel.dimensions.X = 1800;
                    walkDownLabel.dimensions.Y = 400;
                    tutorialGui.Add(walkDownLabel);
                    WorldLabel walkLeftLabel = new WorldLabel(spriteFont, "press a to walk left");
                    walkLeftLabel.dimensions.X = 1100;
                    walkLeftLabel.dimensions.Y = 1200;
                    tutorialGui.Add(walkLeftLabel);
                    WorldLabel followLabel = new WorldLabel(spriteFont, "Your character faces the mouse cursor");
                    followLabel.dimensions.X = 400;
                    followLabel.dimensions.Y = 1800;
                    tutorialGui.Add(followLabel);
                    WorldLabel attackLabel = new WorldLabel(spriteFont, "click the left mouse button to attack");
                    attackLabel.dimensions.X = -450;
                    attackLabel.dimensions.Y = 1500;
                    tutorialGui.Add(attackLabel);
                    WorldLabel useLabel = new WorldLabel(spriteFont, "press e when you are standing over stairs to go down a floor");
                    useLabel.dimensions.X = -200;
                    useLabel.dimensions.Y = 50;
                    tutorialGui.Add(useLabel);
                }
            }
        }