public Level2(DataBase db) { this.db = db; InitializeComponent(); InitializeMyComponenets(); this.FormBorderStyle = FormBorderStyle.None; timer1.Start(); ScorePoints.Text = db.Score.ToString(); HPBar.Increment(db.Life); ScorePoints.Text = db.Score.ToString(); ScorePoints.SendToBack(); ScoreLable.SendToBack(); HPBar.SendToBack(); HP.SendToBack(); ChangeHpColor(); if (Music.IsPlaying) { Music.Playlevel2(); } }
public Level3(DataBase db) { npo = new NonPlayer[25]; respawn = new Point(30, 550); this.db = db; letMe = true; right = false; left = false; playerIsMoving = false; InitializeMyComponenets(); InitializeComponent(); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; ScorePoints.Text = db.Score.ToString(); HPBar.Increment(db.Life); ScorePoints.Text = db.Score.ToString(); ScorePoints.SendToBack(); ScoreLable.SendToBack(); HPBar.SendToBack(); HP.SendToBack(); ChangeHpColor(); if (Music.IsPlaying) { Music.Playlevel3(); } }