public PlayerSelectScreen(Hardware hardware) : base(hardware)
    {
        backgroundMusic = new Audio(44100, 2, 4096);
        backgroundMusic.AddMusic("sound/Weird-Xmas.mid");
        arrowSound = new Audio(44100, 2, 4096);
        arrowSound.AddWAV("sound/fire.wav");
        font = new Font("fonts/NexaRustSlab-BlackShadow01.otf", 50);

        characterXPositions    = new int[4];
        characterYPositions    = new int[4];
        characterXPositions[0] = 300;
        characterYPositions[0] = 280;
        characterXPositions[1] = 465;
        characterYPositions[1] = 475;
        characterXPositions[2] = 720;
        characterYPositions[2] = 270;
        characterXPositions[3] = 1100;
        characterYPositions[3] = 310;

        chosenPlayer = 0;
        backGround   = new Image
                           (@"imgs\PlayerSelectScreenWithCharacters.png", 1280, 720);
        downArrow = new Image
                        (@"imgs\Arrow2MiniDown.png", 57, 48);
        downArrow.X = (short)characterXPositions[chosenPlayer];
        downArrow.Y = (short)characterYPositions[chosenPlayer];
    }
Example #2
0
 public ControllerScreen(Hardware hardware) : base(hardware)
 {
     exit  = false;
     audio = new Audio(44100, 2, 4096);
     audio.AddWAV("music/reset.wav");
     imgController = new Image("imgs/SettingsScreen.png", 800, 700);
     //imgChosenOption = new Image("imgs/BombMenu1.png", 50, 50);
     imgController.MoveTo(0, 0);
     //imgChosenOption.MoveTo(240, 390);
 }
 public ControllerScreen(Hardware hardware) : base(hardware)
 {
     exit  = false;
     audio = new Audio(44100, 2, 4096);
     audio.AddWAV("music/reset.wav");
     imgController = new Image("imgs/ControllerScreen.png", 840, 755);
     imgController.MoveTo(0, 0);
     font   = new Font("font/Joystix.ttf", 10);
     yellow = new Sdl.SDL_Color(255, 255, 0);
 }
Example #4
0
 public WelcomeScreen(Hardware hardware) : base(hardware)
 {
     exit  = false;
     audio = new Audio(44100, 2, 4096);
     audio.AddWAV("music/reset.wav");
     imgWelcome =
         new Image("imgs/MenuPrincipal.png", 840, 755);
     imgChosenOption =
         new Image("imgs/BombMenu1.png", 50, 50);
     imgWelcome.MoveTo(0, 0);
     imgChosenOption.MoveTo(245, 420);
 }
 public SelectLenguage(Hardware hardware) : base(hardware)
 {
     exit  = false;
     audio = new Audio(44100, 2, 4096);
     audio.AddWAV("music/reset.wav");
     imgWelcome =
         new Image("imgs/MenuPrincipal.png", 840, 755);
     imgChosenOption =
         new Image("imgs/BombMenu1.png", 50, 50);
     font = new Font("font/Joystix.ttf", 28);
     imgWelcome.MoveTo(0, 0);
     imgChosenOption.MoveTo(245, 420);
     yellow = new Sdl.SDL_Color(255, 255, 0);
 }
Example #6
0
    public MainMenuScreen(Hardware hardware) : base(hardware)
    {
        font = new Font("fonts/Abberancy.ttf", 45);

        InitText();
        bakcGround     = new Image("imgs/Test.png", 1200, 720);
        imgChoseOption = new Image("imgs/choose_player.png", 48, 48);
        audio          = new Audio(44100, 2, 4096);
        audio2         = new Audio(44100, 2, 4096);
        audio.AddMusic("sound/song_a.mid");
        audio2.AddWAV("sound/fire.Wav");

        imgChoseOption.MoveTo((short)(470 + len), 105);
        bakcGround.MoveTo(0, 0);
    }
Example #7
0
 public SettingScreen(Hardware hardware) : base(hardware)
 {
     exit  = false;
     audio = new Audio(44100, 2, 4096);
     audio.AddWAV("music/reset.wav");
     font       = new Font("font/Joystix.ttf", 28);
     imgSetting =
         new Image("imgs/SettingsScreen.png", 840, 755);
     imgChosenOption =
         new Image("imgs/select.png", 40, 35);
     game = new GameScreen(hardware);
     imgSetting.MoveTo(0, 0);
     imgChosenOption.MoveTo(170, 240);
     white = new Sdl.SDL_Color(255, 255, 255);
 }
Example #8
0
    public ScoreBoardScreen(Hardware hardware) : base(hardware)
    {
        scoreList  = GameScreen.scoreList;
        scorePtr   = new IntPtr[scoreList.Count];
        font       = new Font("fonts/Abberancy.ttf", 35);
        bakcGround = new Image("imgs/fondoNegro.png", 1200, 720);
        audio      = new Audio(44100, 2, 4096);
        audio.AddMusic("sound/Wistful-for-piano.mid");
        audio2 = new Audio(44100, 2, 4096);
        audio2.AddWAV("sound/fire.Wav");

        bakcGround.MoveTo(0, 0);

        InitText();
    }