Exemple #1
0
 public frmHome()
 {
     InitializeComponent();
     //this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     Sound.ChangeMusicURL("Menu.mp3");
     Sound.PlayMusic();
 }
Exemple #2
0
 //overloaded constructor
 public frmGame(int Level)
 {
     InitializeComponent();
     List.player  = new Player(this);
     LevelCounter = Level;
     DestroyEverything();
     SpawnEnemies();
     Sound.ChangeSoundURL("Fire.mp3");
     Sound.ChangeMusicURL("Game.mp3");
     lblLevel.Text = "Level " + Level;
 }
Exemple #3
0
        //constructor for game form
        public frmGame()
        {
            InitializeComponent();
            List.player  = new Player(this);
            LevelCounter = 0;
            DestroyEverything();
            SpawnEnemies();
            Sound.ChangeSoundURL("Fire.mp3");
            Sound.ChangeMusicURL("Game.mp3");

            if (!File.Exists("Level.txt"))
            {
                using (StreamWriter sw = File.CreateText("Level.txt"))
                {
                    sw.Write("1");
                }
            }
        }