示例#1
0
        public Lose(int s,Form f)
        {
            this.score = s;
            this.menu = f;
            InitializeComponent();

            DoodlJumper2 = new DoodleJump(Doodle2.Location.X, Doodle2.Location.X + 26, Doodle2.Location.Y + 36, false, Doodle2, false);
            Step step1 = new Step(label5.Location.X, label5.Location.X + 45, label5.Location.Y, label5, true, false);

            records = Higtscore();
            foreach (Record r in records)
            {
                if (r.score > hightscore)
                    hightscore = r.score;
            }
        }
示例#2
0
        public Records(Form f)
        {
            this.menu = f;
            InitializeComponent();

            DoodlJumper2 = new DoodleJump(Doodle2.Location.X, Doodle2.Location.X + 26, Doodle2.Location.Y + 36, false, Doodle2, false);
            Step step1 = new Step(label5.Location.X, label5.Location.X + 45, label5.Location.Y, label5, true, false);
            records = Higtscore();
            records.Sort(Record.RecordCompare);
            if (records.Count <= 10)
            {
                for (int i = records.Count - 1; i >= 0; i--)
                {
                    listBox1.Items.Add(((records.Count - i).ToString() + " " + records.ElementAt(i).score + " " + records.ElementAt(i).name + " " + records.ElementAt(i).dt.ToShortDateString()));
                }
            }
            else
            {
                for (int i = records.Count - 1; i >= records.Count - 10; i--)
                {
                    listBox1.Items.Add(((records.Count - i).ToString() + " " + records.ElementAt(i).score + " " + records.ElementAt(i).name + " " + records.ElementAt(i).dt.ToShortDateString()));
                }
            }
        }
示例#3
0
 public Menu()
 {
     InitializeComponent();
     DoodlJumper2 = new DoodleJump(Doodle2.Location.X, Doodle2.Location.X + 26, Doodle2.Location.Y + 36, false, Doodle2, false);
     Step step1 = new Step(label5.Location.X, label5.Location.X + 45, label5.Location.Y, label5, true, false);
 }