/// <summary> /// Constructs a new gem. /// </summary> public PowerUp(Level level, Vector2 position, string type) { this.level = level; this.basePosition = position; this.type = type; LoadContent(); }
/// <summary> /// Constructors a new player. /// </summary> public Bobo(GameScreen screen, Level level, Vector2 position) { this.level = level; LoadContent(screen); Reset(position); }
public Fireball(GameScreen screen ,Level level, string fireballname) { this.level = level; LoadContent(screen, fireballname); }
// : base(g) public Enemy(Level level, Vector2 position, string enemy) { this.level = level; this.enemy = enemy; if (enemy == "enemy") Health = 0; else Health = 1; LoadContent(); Reset(position); }