Exemple #1
0
        public void Update()
        {
            UpdateVelocity();


            hitbox.Move((int)X - 30, (int)Y - 50);
        }
Exemple #2
0
 public void Update()
 {
     X -= game.backgroundSpeed;
     hitbox.Move((int)X, (int)Y);
     if (X < -1 * width)
     {
         offScreen = true;
     }
 }