private void Respawn() { this.Point = new Point(GameEnvironment.WindowWidth / 2, GameEnvironment.WindowHeight - WorldContainer.GroundObjects[0].Height - GameEnvironment.GooseHeight); this.isDead = false; this.isFacingLeft = false; Move(WorldContainer.GroundObjects[0].OffsetX, 0); groundObjectUnder = GetGroundObjectUnder(); ImageIndex = 0; }
private void Move(int offsetX, int offsetY) { WorldContainer.Move(offsetX); point.Offset(0, offsetY); groundObjectUnder = GetGroundObjectUnder(); OnPropertyChanged("Point"); }