public HealthPack(Vector2 position, Animation animation) { this.Position = position; this.Animation = animation; this.IsDrawn = false; this.IsActive = false; this.TimeToSpawn = Globals.Rng.Next(350, 700); }
public Player(Keys moveLeft, Keys moveRight, Keys jump, Keys dash, Vector2 position, Animation animation, bool isFacingRight) { this.State = "Idle"; this.IsFacingRight = isFacingRight; this.JumpHeight = 0; this.Controls = new Dictionary<string, Keys>(); this.Controls.Add("Move Left", moveLeft); this.Controls.Add("Move Right", moveRight); this.Controls.Add("Jump", jump); this.Controls.Add("Shoot", dash); this.Position = position; this.Health = MAX_HEALTH; this.Snowballs = DEFAULT_SNOWBALLS; this.IsGrounded = false; this.PlayerAnimation = animation; }