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

            b.MakeTransparent(Color.Black);
            obrazok = b;
        }
예제 #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;
        }
예제 #3
0
 private void NastartujHru()
 {
     this.BackColor = Color.Black;
     HernySvet hra = new HernySvet(this);
 }
예제 #4
0
 public HernyObjekt(HernySvet hernySvet)
 {
     this.instancHernehoSveta = hernySvet;
 }
예제 #5
0
 public Strela(HernySvet hernSvet) : base(hernSvet)
 {
     obrazok = new Bitmap("Grafika\\Strela.bmp");
 }