Beispiel #1
0
        private void setBackground()
        {
            InGameComponent inGameBackground = new InGameComponent();

            addComponent(inGameBackground);


            BackgroundComponent background = new BackgroundComponent("Menus/Game Over");

            background.Position = new Vector2(36, 50);

            background.setTransitions(new ScaleComponent(new FadeComponent(15, 1), new Vector2(100, 180), 0.75f, 15, true), new MoveComponent(new Vector2(-200, 0), true, 15),
                                      new ScaleComponent(new FadeComponent(15, -1), new Vector2(100, 180), -0.75f, 15, false), new MoveComponent(new Vector2(200, 0), false, 15));

            addComponent(background);
        }
Beispiel #2
0
        private void setBackground()
        {
            InGameComponent inGameBackground = new InGameComponent();

            inGameBackground.setTransitions(new DimComponent(new Vector3(100), 20, -1), new FadeComponent(15, 1),
                                            new FadeComponent(15, -1), new DimComponent(new Vector3(100), 20, 1));

            addComponent(inGameBackground);


            BackgroundComponent background = new BackgroundComponent("Menus/Pause Menu");

            background.Position = new Vector2(52, 100);

            background.setTransitions(new MoveComponent(null, new Vector2(0, 340), true, 20), new MoveComponent(null, new Vector2(200, 0), true, 15),
                                      new MoveComponent(null, new Vector2(-200, 0), false, 15), new MoveComponent(null, new Vector2(0, -340), false, 20));

            addComponent(background);
        }
Beispiel #3
0
        private void setInGame()
        {
            InGameComponent inGame = new InGameComponent();

            addComponent(inGame);
        }