Ejemplo n.º 1
0
        public StartMenu() : base()
        {
            _hover = new Sound("hover.wav", false, false);

            startMusic();

            startmenu = new Sprite("StartMenu.png");
            AddChild(startmenu);

            _start_button = new Button_Start();
            AddChild(_start_button);

            _credits_button = new Button_Credits();
            AddChild(_credits_button);

            _quit_button = new Button_Quit();
            AddChild(_quit_button);

            start_button_normal = new Sprite("start_button_normal.png");
            AddChild(start_button_normal);

            start_button_hover = new Sprite("start_button_hover.png");
            AddChild(start_button_hover);

            controls_button_normal = new Sprite("controls_button_normal.png");
            AddChild(controls_button_normal);

            controls_button_hover = new Sprite("controls_button_hover.png");
            AddChild(controls_button_hover);

            quit_button_normal = new Sprite("exit_button_normal.png");
            AddChild(quit_button_normal);

            quit_button_hover = new Sprite("exit_button_hover.png");
            AddChild(quit_button_hover);

            Globals.showMouseCursor = true;
        }
Ejemplo n.º 2
0
        public VictoryScreen() : base()
        {
            _hover = new Sound("hover.wav", false, false);

            victoryscreen = new Sprite("VictoryScreen.png");
            AddChild(victoryscreen);

            _restart_button = new Button_Start();
            AddChild(_restart_button);

            _credits_button = new Button_Credits();
            AddChild(_credits_button);

            _main_menu_button = new Button_Quit();
            AddChild(_main_menu_button);

            restart_button_normal = new Sprite("restart2_button_normal.png");
            AddChild(restart_button_normal);

            restart_button_hover = new Sprite("restart2_button_hover.png");
            AddChild(restart_button_hover);

            credits_button_normal = new Sprite("credits_button_normal.png");
            AddChild(credits_button_normal);

            credits_button_hover = new Sprite("credits_button_hover.png");
            AddChild(credits_button_hover);

            main_menu_button_normal = new Sprite("main_menu_button_normal.png");
            AddChild(main_menu_button_normal);

            main_menu_button_hover = new Sprite("main_menu_button_hover.png");
            AddChild(main_menu_button_hover);

            Globals.showMouseCursor = true;
        }