public PucanjeGlavniBz(GlavniBezobraznik gbz)
 {
     X       = gbz.X + gbz.A / 2;
     Y       = gbz.Y + gbz.A / 2;
     sb      = new SolidBrush(Color.OrangeRed);
     pomeraj = 5;
     a       = 10;
 }
Example #2
0
        public Form1()
        {
            InitializeComponent();
            this.DoubleBuffered = true;
            igrac       = new Igrac();
            quest       = new QuestCika();
            listaOruzja = new List <Oruzje>();
            teren       = new Teren();
            top         = new Topovi(170, 170, 240, 180);
            listaMetaka = new List <TopMeci>(3);
            kp          = new List <kolekcionarskiPredmet>();
            kolekcionarskiPredmet k = null;

            k = new kolekcionarskiPredmet(30, 90);
            kolekcionarskiPredmet m = null;

            m = new kolekcionarskiPredmet(90, 90);
            kolekcionarskiPredmet nj = null;

            nj = new kolekcionarskiPredmet(470, 50);
            kolekcionarskiPredmet dz = null;

            dz = new kolekcionarskiPredmet(470, 60);
            kolekcionarskiPredmet znj = null;

            znj = new kolekcionarskiPredmet(470, 70);
            kp.Add(k);
            kp.Add(m);
            kp.Add(nj);
            kp.Add(dz);
            kp.Add(znj);
            vrata           = new Vrata();
            bz              = new Bezobraznici();
            gbz             = new GlavniBezobraznik();
            pgbz            = new List <PucanjeGlavniBz>();
            brojSakupljenih = 0;
            timer1.Start();
            timer2.Start();
            timer3.Start();
        }