Ejemplo n.º 1
0
        public Enemy(int width, int height, int x, int y, Color color, Игрушка game)
            : base(width, height, x, y, color, game)
        {
            Random rnd = new Random();

            this._jumpHeight = rnd.Next(30) + 10;
            this._xspeed     = -rnd.Next(10) - 5;
        }
Ejemplo n.º 2
0
 public Square(int width, int height, int x, int y, Color color, Игрушка game)
 {
     this._width = width;
     _height     = height;
     _y          = y;
     _x          = x;
     _defcolor   = this._color = color;
     this._game  = game;
 }
Ejemplo n.º 3
0
 public Destructor(int width, int height, int x, int y, Color color, Игрушка game)
     : base(width, height, x, y, color, game)
 {
 }
Ejemplo n.º 4
0
 public Player(int width, int height, int x, int y, Color color, Игрушка game)
     : base(width, height, x, y, color, game)
 {
 }
Ejemplo n.º 5
0
 public Obstacle(int width, int height, int x, int y, Color color, Игрушка game)
     : base(width, height, x, y, color, game)
 {
 }