Exemple #1
0
        public FrmOptions(Form caller, KeyBinding keyBinding, SoundCollection sounds)
        {
            this.caller     = caller;
            this.keyBinding = keyBinding;
            this.sounds     = sounds;

            InitializeComponent();
        }
Exemple #2
0
        public FrmRanking(Form caller, List <RankEntry> entries, SoundCollection sounds, int newLevel, int newScore)
        {
            this.caller   = caller;
            this.entries  = entries;
            this.sounds   = sounds;
            this.newLevel = newLevel;
            this.newScore = newScore;

            InitializeComponent();
        }
Exemple #3
0
        private void FrmMenu_Load(object sender, EventArgs e)
        {
            gameStarted = false;

            sounds = new SoundCollection();
            sounds.Add("reset");
            sounds.Add("select");
            sounds.Add("confirm");
            sounds.Add("PAS_OK2");
            sounds.Add("BOM_11_L");
            sounds.Add("BOM_11_M");
            sounds.Add("BOM_11_S");
            sounds.Add("BOM_BOUND");
            sounds.Add("BOM_KICK");
            sounds.Add("BOM_SET");
            sounds.Add("GOAL");
            sounds.Add("HURRYUP");
            sounds.Add("ITEM_GET");
            sounds.Add("P1UP");
            sounds.Add("TIME_UP");
            sounds.Add("pause");
            sounds.Add("intro", "Music.TheStringALongs-MyBlueHeaven.mp3");
            sounds.Add("stage1", "Music.BookerTTheMgs-TimeIsTight.mp3");
            sounds.Add("stage2", "Music.VillageStompers-WashingtonSquare.mp3");
            sounds.Add("stage3", "Music.TheVentures-WalkDontRun64.mp3");
            sounds.Add("stage4", "Music.RayConniff-BesameMucho.mp3");
            sounds.Add("stage5", "Music.TheChamps-Tequila.mp3");
            sounds.Add("stage6", "Music.HotButter-PopCorn.mp3");
            sounds.Add("stage7", "Music.ChuckMangione-ChildrenOfSanchez.mp3");
            sounds.Add("gameover", "Music.JohnnyTheHurricanes-BeatnikFly.mp3");

            playNorm  = new Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream("Bomberman.Resources.Textures.Menu.jogarnorm.png"));
            playFocus = new Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream("Bomberman.Resources.Textures.Menu.jogarfocus.png"));

            rankNorm  = new Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream("Bomberman.Resources.Textures.Menu.ranknorm.png"));
            rankFocus = new Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream("Bomberman.Resources.Textures.Menu.rankfocus.png"));

            optionsNorm  = new Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream("Bomberman.Resources.Textures.Menu.opcnorm.png"));
            optionsFocus = new Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream("Bomberman.Resources.Textures.Menu.opcfocus.png"));

            keyBinding = new KeyBinding();
            rank       = new List <RankEntry>();

            LoadKeyBindingFromDisk();
            LoadRankFromDisk();
        }
Exemple #4
0
 public FrmRanking(Form caller, List <RankEntry> entries, SoundCollection sounds)
     : this(caller, entries, sounds, -1, -1)
 {
 }