コード例 #1
0
    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];
    }
コード例 #2
0
ファイル: OptionsScreen.cs プロジェクト: Muglok/Max_Ell_Power
 public OptionsScreen(Hardware hardware) : base(hardware)
 {
     font       = new Font("fonts/Nashville.ttf", 33);
     bakcGround = new Image("imgs/Options.png", 1200, 720);
     audio      = new Audio(44100, 2, 4096);
     audio.AddMusic("sound/adagio-for-strings.mid");
     bakcGround.MoveTo(0, 0);
 }
コード例 #3
0
ファイル: HelpScreen.cs プロジェクト: Muglok/Max_Ell_Power
 public HelpScreen(Hardware hardware) : base(hardware)
 {
     font       = new Font("fonts/Nashville.ttf", 33);
     bakcGround = new Image("imgs/Help.png", 1200, 720);
     audio      = new Audio(44100, 2, 4096);
     audio.AddMusic("sound/Wistful-for-piano.mid");
     bakcGround.MoveTo(0, 0);
 }
コード例 #4
0
 public GameScreen(Hardware hardware) : base(hardware)
 {
     GameController.lastGame = 1;
     audio = new Audio(44100, 2, 4096);
     audio.AddMusic("sound/Heroic-Deeds.mid");
     map       = new Map("Map/map1.txt");
     scoreList = new List <Scores>();
     Load();
 }
コード例 #5
0
 public HordeModeScreen(Hardware hardware) : base(hardware)
 {
     GameController.lastGame = 2;
     level0 = new Image("imgs/Map2.png", 1200, 720);
     audio  = new Audio(44100, 2, 4096);
     audio.AddMusic("sound/Apocalypse.mid");
     level0.MoveTo(0, 0);
     NewEnemy();
 }
コード例 #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);
    }
コード例 #7
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();
    }
コード例 #8
0
 public IntroScreen(Hardware hardware) : base(hardware)
 {
     bakcGround = new Image("imgs/IntroScreen2.png", 1200, 720);
     audio      = new Audio(44100, 2, 4096);
     audio.AddMusic("sound/IntroTheme.mid");
     font = new Font("fonts/NexaRustSlab-BlackShadow01.otf", 35);
     bakcGround.MoveTo(0, 0);
     Sdl.SDL_Color white = new Sdl.SDL_Color(255, 255, 255);
     Englis = SdlTtf.TTF_RenderText_Solid(font.GetFontType(),
                                          "Press space/A escape/B to continue", white);
     Castellano = SdlTtf.TTF_RenderText_Solid(font.GetFontType(),
                                              "Espacio o A para Castellano", white);
     Englis = SdlTtf.TTF_RenderText_Solid(font.GetFontType(),
                                          "Escape or B for English", white);
 }
コード例 #9
0
    public GameScreen(Hardware hardware) : base(hardware)
    {
        // preload text
        font28 = new Font("font/Joystix.ttf", 28);
        font36 = new Font("font/Joystix.ttf", 36);
        white  = new Sdl.SDL_Color(255, 255, 255);

        // preload images
        imgFloor = new Image("imgs/Floor.png", 840, 680);
        imgFloor.MoveTo(0, 0);
        imgInfo = new Image("imgs/InfoPanel.png", 840, 75);
        imgInfo.MoveTo(0, 680);
        bomb1 = new Image("imgs/bomb1.png", 40, 40);
        bomb2 = new Image("imgs/bomb2.png", 40, 40);
        bomb3 = new Image("imgs/bomb3.png", 40, 40);

        playerWhite = new PlayerWhite();
        playerRed   = new PlayerRed();
        bomb        = new Bombs();
        audio       = new Audio(44100, 2, 4096);
        audio.AddMusic("music/BombermanNES.wav");
        controller = new ControllerScreen(hardware);
    }