示例#1
0
        public Przeciwnik(IntPtr tekstura, Pocisk pocisk, double x, double y, double w, double h)
        {
            this.x = x;
            this.y = y;
            this.w = w;
            this.h = h;


            zycie         = 10;
            vx            = 3;
            this.pocisk   = pocisk;
            this.tekstura = tekstura;
            t_strzal      = new Taimer(pocisk.tears);
        }
示例#2
0
        public Sonda(Tekstury t)
        {
            x = 1300;
            Random ran = new Random();

            y    = ran.Next(0, 720);
            h    = 40;
            w    = 40;
            kont = 0;

            zycie    = 5;
            vx       = 6;
            pocisk   = new Pocisk(t.t["pocisk"]);
            t_strzal = new Taimer(pocisk.tears);

            tekstura = t.t["sonda"];
        }
示例#3
0
        public Samolot(double x, double y, double w, double h, IntPtr tekstura, Bron bron)
        {
            this.x = x;
            this.y = y;
            this.w = w;
            this.h = h;

            zycie                  = 10;
            vy                     = 0;
            vx                     = 0;
            silnik                 = 0;
            przyspieszenie         = 0.1;
            przyspieszenieWzlotowe = 0.001;
            maxsilnik              = 5;
            maxkontup              = 45;
            kont                   = 0;
            masa                   = 20;
            this.tekstura          = tekstura;
            this.bron              = bron;
            masa                   = bron.masa;
            zwrotnosc              = 1;
            t_Strzal               = new Taimer(bron.pocisk.tears);
        }