Example #1
0
 public Calculator(Form menu, Form game)
 {
     this._menu = menu;
     this._game = game;
     SetRungs();
     DoodlJumper = new DoodleJump(ApplicationSettings.StartPositionLeft, ApplicationSettings.Start, false, false);
 }
Example #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()));
                }
            }
        }
Example #3
0
 public Calculator( Form menu,Form game)
 {
     this._menu=menu;
     this._game=game;
     SetRungs();
     DoodlJumper = new DoodleJump(ApplicationSettings.StartPositionLeft, ApplicationSettings.Start, false, false);
 }
Example #4
0
 public GameMainWindow(Form form)
 {
     this._menu = form;
     InitializeComponent();
     MaxStepGet();
     StepsGet();
     _DoodlJumper = new DoodleJump(DoodleJumper.Location.X, DoodleJumper.Location.X + 26, DoodleJumper.Location.Y + 36, false, DoodleJumper, false);
 }
Example #5
0
 public GameMainWindow(Form form)
 {
     this._menu = form;
     InitializeComponent();
     MaxStepGet();
     StepsGet();
     _DoodlJumper = new DoodleJump(DoodleJumper.Location.X, DoodleJumper.Location.X + 26, DoodleJumper.Location.Y + 36, false, DoodleJumper, false);
 }
Example #6
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;
            }
        }
Example #7
0
        public ListTetradi(Form f)
        {
            this.menu = f;
            InitializeComponent();
            #region Steps
            foreach (Control p in Controls)
            {
                if ((p.Name != DoodleJumper.Name) && (p.GetType() == typeof(Label)))
                {
                    if (p.Top / 250 > maxstep)
                        maxstep = p.Top / 250;
                }

            }
            steps = new List<Step>[maxstep+1];
            for (int j = 0; j <= maxstep; j++)
            {
                steps[j]=new List<Step>();
            }
            foreach (Control p in Controls)
            {
                if ((p.Name != DoodleJumper.Name) && (p.GetType() == typeof(Label)))
                {
                    for (int j = 0; j <= maxstep; j++)
                    {
                        if (p.Top / 250 == j)
                        {
                            if (p.BackColor != Color.Black)
                            {
                                steps[j].Add(new Step(p.Location.X, p.Location.X + 45, p.Location.Y, (Label)p, false, false));
                            }
                            else
                            {
                                steps[j].Add(new Step(p.Location.X, p.Location.X + 45, p.Location.Y, (Label)p, true, false));
                            }
                        }

                    }
                }

            }

            DoodlJumper1 = new DoodleJump(DoodleJumper.Location.X, DoodleJumper.Location.X + 26, DoodleJumper.Location.Y + 36, false, DoodleJumper,false);
                //steps[9].Add(new Step(77,122,4796,label54,true,true));
            #endregion
        }
Example #8
0
        public ListTetradi(Form f)
        {
            this.menu = f;
            InitializeComponent();
            #region Steps
            foreach (Control p in Controls)
            {
                if ((p.Name != DoodleJumper.Name) && (p.GetType() == typeof(Label)))
                {
                    if (p.Top / 250 > maxstep)
                    {
                        maxstep = p.Top / 250;
                    }
                }
            }
            steps = new List <Step> [maxstep + 1];
            for (int j = 0; j <= maxstep; j++)
            {
                steps[j] = new List <Step>();
            }
            foreach (Control p in Controls)
            {
                if ((p.Name != DoodleJumper.Name) && (p.GetType() == typeof(Label)))
                {
                    for (int j = 0; j <= maxstep; j++)
                    {
                        if (p.Top / 250 == j)
                        {
                            if (p.BackColor != Color.Black)
                            {
                                steps[j].Add(new Step(p.Location.X, p.Location.X + 45, p.Location.Y, (Label)p, false, false));
                            }
                            else
                            {
                                steps[j].Add(new Step(p.Location.X, p.Location.X + 45, p.Location.Y, (Label)p, true, false));
                            }
                        }
                    }
                }
            }

            DoodlJumper1 = new DoodleJump(DoodleJumper.Location.X, DoodleJumper.Location.X + 26, DoodleJumper.Location.Y + 36, false, DoodleJumper, false);
            //steps[9].Add(new Step(77,122,4796,label54,true,true));
            #endregion
        }
Example #9
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;
                }
            }
        }
Example #10
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()));
                }
            }
        }
Example #11
0
 public BaseForm()
 {
     InitializeComponent();
     _doodlJumper = new DoodleJump(ApplicationSettings.StartPositionLeft, ApplicationSettings.StartPositionTop, false, false);
 }
Example #12
0
 public BaseForm()
 {
     InitializeComponent();
     _doodlJumper = new DoodleJump(ApplicationSettings.StartPositionLeft, ApplicationSettings.StartPositionTop, false, false);
 }
Example #13
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);
 }
Example #14
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);
 }
Example #15
0
 public BaseForm()
 {
     InitializeComponent();
     _DoodlJumper = new DoodleJump(DoodleBase.Location.X, DoodleBase.Location.X + ApplicationSettings.DoodleLength, DoodleBase.Location.Y + ApplicationSettings.DoodleHight, false, DoodleBase, false);
 }