public void Update(GameTime gameTime, Character target, Rectangle window) { center = new Vector2(target.getPosition().X + (target.FrameSize.X / 2 - window.Width /2), target.getPosition().Y + (target.FrameSize.Y / 2 - window.Height /2)); transform = Matrix.CreateScale(new Vector3(2,2,0)) * Matrix.CreateTranslation(new Vector3(-center.X*2 - window.Width/2,-center.Y*2 - window.Height/2,0)); }
public override void PickMeUp(Character pickedUpBy) { base.PickMeUp(pickedUpBy); this.CanCollide = true; }
public virtual void PickMeUp(Character pickedUpBy) { this.IsPickedUp = true; this.HeldBy = pickedUpBy; }