Example #1
0
        public Nepriatel(HernySvet hernySvet, string cesta) : base(hernySvet)
        {
            Bitmap b = new Bitmap(cesta);

            b.MakeTransparent(Color.Black);
            obrazok = b;
        }
Example #2
0
        public Hrac(HernySvet hernySvet) : base(hernySvet)
        {
            Bitmap b = (Bitmap)lod;

            b.MakeTransparent(Color.Black);
            obrazok      = b;
            this.X       = (max_X / 2) - (obrazok.Width / 2);
            this.Y       = max_Y - obrazok.Height;
            Zivoty       = 3;
            PocetZasahov = 0;
        }
Example #3
0
 private void NastartujHru()
 {
     this.BackColor = Color.Black;
     HernySvet hra = new HernySvet(this);
 }
Example #4
0
 public HernyObjekt(HernySvet hernySvet)
 {
     this.instancHernehoSveta = hernySvet;
 }
Example #5
0
 public Strela(HernySvet hernSvet) : base(hernSvet)
 {
     obrazok = new Bitmap("Grafika\\Strela.bmp");
 }