public frmHome() { InitializeComponent(); //this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; Sound.ChangeMusicURL("Menu.mp3"); Sound.PlayMusic(); }
//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; }
//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"); } } }