Exemple #1
0
 public virtual void Wyswietlanie(CORE core)
 {
     core.DrawSpriteEx(tekstura, new SDL.SDL_Rect()
     {
         x = 0, y = 0, w = 128, h = 128
     }, new SDL.SDL_Rect()
     {
         x = (int)x, y = (int)y, w = (int)w, h = (int)h
     }, kont, w, h);
 }
Exemple #2
0
 public void Wyswietlanie(CORE core, Samolot gracz)
 {
     x    = gracz.x;
     y    = gracz.y;
     kont = gracz.kont;
     vx   = gracz.silnik;
     core.DrawSpriteEx(tekstura, new SDL.SDL_Rect()
     {
         x = 0, y = 0, w = 128, h = 128
     }, new SDL.SDL_Rect()
     {
         x = (int)x, y = (int)y, w = (int)w, h = (int)h
     }, kont, w, h);
 }
Exemple #3
0
        public override void Wyswietlanie(CORE myCore)
        {
            myCore.DrawSpriteEx(tekstura, new SDL_Rect()
            {
                x = 0, y = 0, w = 128, h = 128
            }, new SDL_Rect()
            {
                x = (int)x, y = (int)y, w = (int)w, h = (int)h
            }, kont, w, h);

            bron.Wyswietlanie(myCore, this);

            for (int i = 0; i < wystrzelone.Count; i++)
            {
                wystrzelone[i].Wyswietlanie(myCore);
            }

            Sterowanie(myCore);
            Strzelanie(myCore);
        }