Ejemplo n.º 1
0
        private void pictureBox1_MouseUp(object sender, MouseEventArgs e)
        {
            ResourceManager rm = Resources.ResourceManager;
            Image slika = (Image)rm.GetObject("nova_igra_kopce");
            pictureBox1.Image = slika;

                Players ime = new Players(this);
                this.Hide();
                ime.Show();
        }
Ejemplo n.º 2
0
        public NewGame(Players ig)
        {
            InitializeComponent();
            this.ig = ig;
            lbl_igrac1.Text = ig.tbPlayer1.Text;
            lbl_igrac2.Text = ig.tbPlayer2.Text;

            bounds = new Rectangle(10, 10, this.Bounds.Width, this.Bounds.Height -120);
            pozadina = new Bitmap(Width,Height);
            graphics = CreateGraphics();
            ball = new Ball(Width / 2, Height / 2, 20, 20, (float)(Math.PI/4 ));
            ball.bound = bounds;
            Show();
            brush = new SolidBrush(Color.Blue);
            timer = new Timer();
            timer.Tick += new EventHandler(timer_Tick);
            timer.Interval = 500 / FRAMES_PER_SECOND;
            max = (int)ig.numericUpDown1.Value;
            lbl_rez1.Text = (max).ToString();
            lbl_rez2.Text = (max).ToString();
        }