コード例 #1
0
ファイル: Samurai.cs プロジェクト: Cur10s1ty/project2
 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;
 }
コード例 #2
0
ファイル: Level.cs プロジェクト: Cur10s1ty/project2
        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>();
        }
コード例 #3
0
ファイル: Game1.cs プロジェクト: Cur10s1ty/project2
        public void LoadIngameContent()
        {
            player = new Demon(0, 291);
            controller = new Controller();

            currentLevel = new Level(player, 1);
            currentLevel.GenerateLevel(currentLevel.level);
        }