Ejemplo n.º 1
0
 public Enemy(float _x, float _y)
 {
     x = _x;
     y = _y;
     gun = new Gun (GunType.NullGun, this);
     MOVE_SPEED = 200;
     FALL_SPEED = 4;
     FALL_CAP = (MOVE_SPEED + MOVE_SPEED / 100 * 50) / FALL_SPEED;
 }
 public Player(float _x, float _y)
 {
     colour = Color.Blue;
     falling = true;
     MOVE_SPEED = 200;
     FALL_SPEED = 4;
     FALL_CAP = (MOVE_SPEED + MOVE_SPEED / 100 * 50) / FALL_SPEED;
     x = _x;
     y = _y;
     gun = new Gun (GunType.HandGun, this);
     width = WIDTH;
     height = HEIGHT;
     graphic = new Graphic (colour, WIDTH, HEIGHT);
 }