public Samurai(float x, float y) : base(x, y) { this.health = 500; game.AddUnit(this); target = game.player; this.texture = AkumaContentManager.samuraiTempTex; this.movementSpeed = 6f; maxJumpHeight = game.currentLevel.levelHeight - texture.Height; }
public Level(Demon player, int level) { random = new Random(); this.player = player; player.location = new Vector2(0, 291); this.level = level; baddies = new LinkedList<Unit>(); baddiesToRemove = new LinkedList<Unit>(); creatures = new LinkedList<Creature>(); creaturesToRemove = new LinkedList<Creature>(); obstacles = new LinkedList<Obstacle>(); projectiles = new LinkedList<Projectile>(); deadProjectiles = new LinkedList<Projectile>(); tombstones = new LinkedList<Tombstone>(); powerUps = new LinkedList<PowerUp>(); powerUpsToRemove = new LinkedList<PowerUp>(); }
public void LoadIngameContent() { player = new Demon(0, 291); controller = new Controller(); currentLevel = new Level(player, 1); currentLevel.GenerateLevel(currentLevel.level); }