public void NovaIgra()
        {
            zmija = new Zmija(this.Width, this.Height);
            timer1.Start();
            toolStripStatusLabel1.Text = "Поени " + zmija.Poeni.ToString();
            timer1.Interval            = zmija.Brzina;

            // podesuvanje na dimenziite na stazata
            //this.Width = this.Width - panel1.Width + zmija.StranaKvadrat * SIRINA + 1;
            //this.Height = this.Height - panel1.Height + zmija.StranaKvadrat * VISINA + statusStrip1.Height + 1;
            this.MinimumSize = new Size(this.Width, this.Height);
            this.MaximumSize = new Size(this.Width, this.Height);
            //panel1.Size = new Size(zmija.StranaKvadrat * SIRINA, zmija.StranaKvadrat * VISINA);
        }
Exemple #2
0
        public void NovaIgra()
        {
            zmija = new Zmija();
            timer1.Start();
            toolStripStatusLabel1.Text = "Поени " + zmija.Poeni.ToString();
            timer1.Interval = zmija.Brzina;

            // podesuvanje na dimenziite na stazata
            this.Width = this.Width - panel1.Width + zmija.StranaKvadrat * SIRINA + 1;
            this.Height = this.Height - panel1.Height + zmija.StranaKvadrat * VISINA + statusStrip1.Height + 1;
            this.MinimumSize = new Size(this.Width, this.Height);
            this.MaximumSize = new Size(this.Width, this.Height);
            panel1.Size = new Size(zmija.StranaKvadrat * SIRINA, zmija.StranaKvadrat * VISINA);
        }