Ejemplo n.º 1
0
        private void CreateFairy(GameTypes.EnemyDifficulty difficulty)
        {
            var enemyObj_Fairy = new EnemyObj_Fairy(null, null, null, difficulty);

            enemyObj_Fairy.Position  = Position;
            enemyObj_Fairy.DropsItem = false;
            if (m_target.X < enemyObj_Fairy.X)
            {
                enemyObj_Fairy.Orientation = MathHelper.ToRadians(0f);
            }
            else
            {
                enemyObj_Fairy.Orientation = MathHelper.ToRadians(180f);
            }
            enemyObj_Fairy.Level = Level - 7 - 1;
            m_levelScreen.AddEnemyToCurrentRoom(enemyObj_Fairy);
            enemyObj_Fairy.PlayAnimation();
            enemyObj_Fairy.MainFairy        = false;
            enemyObj_Fairy.SavedStartingPos = enemyObj_Fairy.Position;
            enemyObj_Fairy.SaveToFile       = false;
            if (LevelEV.SHOW_ENEMY_RADII)
            {
                enemyObj_Fairy.InitializeDebugRadii();
            }
            enemyObj_Fairy.SpawnRoom       = m_levelScreen.CurrentRoom;
            enemyObj_Fairy.GivesLichHealth = false;
        }
Ejemplo n.º 2
0
 public override void Initialize()
 {
     m_boss            = (EnemyList[0] as EnemyObj_Fairy);
     m_boss.SaveToFile = false;
     m_boss.Flip       = SpriteEffects.FlipHorizontally;
     base.Initialize();
 }
Ejemplo n.º 3
0
 public override void Initialize()
 {
     this.m_boss = (base.EnemyList[0] as EnemyObj_Fairy);
     this.m_boss.SaveToFile = false;
     this.m_boss.Flip = SpriteEffects.FlipHorizontally;
     base.Initialize();
 }
Ejemplo n.º 4
0
 public override void Dispose()
 {
     if (!base.IsDisposed)
     {
         this.m_boss = null;
         base.Dispose();
     }
 }
Ejemplo n.º 5
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         m_boss = null;
         base.Dispose();
     }
 }
Ejemplo n.º 6
0
 public override void Initialize()
 {
     m_boss = (EnemyList[0] as EnemyObj_Fairy);
     m_boss.PauseEnemy(true);
     m_bossShadow = new ObjContainer("EnemyFairyGhostBossMove_Character");
     m_boss.ChangeSprite("EnemyFairyGhostBossIdle_Character");
     m_bossShadow.TextureColor = Color.Black;
     m_bossShadow.Scale        = m_boss.Scale;
     m_bossShadow.PlayAnimation();
     GameObjList.Add(m_bossShadow);
     base.Initialize();
 }
Ejemplo n.º 7
0
 public override void Initialize()
 {
     this.m_boss = (base.EnemyList[0] as EnemyObj_Fairy);
     this.m_boss.PauseEnemy(true);
     this.m_bossShadow = new ObjContainer("EnemyFairyGhostBossMove_Character");
     this.m_boss.ChangeSprite("EnemyFairyGhostBossIdle_Character");
     this.m_bossShadow.TextureColor = Color.Black;
     this.m_bossShadow.Scale = this.m_boss.Scale;
     this.m_bossShadow.PlayAnimation(true);
     base.GameObjList.Add(this.m_bossShadow);
     base.Initialize();
 }
Ejemplo n.º 8
0
        public static EnemyObj BuildEnemy(int enemyType, PlayerObj player, PhysicsManager physicsManager,
                                          ProceduralLevelScreen levelToAttachTo, GameTypes.EnemyDifficulty difficulty, bool doNotInitialize = false)
        {
            EnemyObj enemyObj = null;

            switch (enemyType)
            {
            case 1:
                enemyObj = new EnemyObj_BallAndChain(player, physicsManager, levelToAttachTo, difficulty);
                break;

            case 2:
                enemyObj = new EnemyObj_Blob(player, physicsManager, levelToAttachTo, difficulty);
                break;

            case 3:
                enemyObj = new EnemyObj_BouncySpike(player, physicsManager, levelToAttachTo, difficulty);
                break;

            case 4:
                enemyObj = new EnemyObj_Eagle(player, physicsManager, levelToAttachTo, difficulty);
                break;

            case 5:
                enemyObj = new EnemyObj_EarthWizard(player, physicsManager, levelToAttachTo, difficulty);
                break;

            case 6:
                enemyObj = new EnemyObj_Eyeball(player, physicsManager, levelToAttachTo, difficulty);
                break;

            case 7:
                enemyObj = new EnemyObj_Fairy(player, physicsManager, levelToAttachTo, difficulty);
                break;

            case 8:
                enemyObj = new EnemyObj_Fireball(player, physicsManager, levelToAttachTo, difficulty);
                break;

            case 9:
                enemyObj = new EnemyObj_FireWizard(player, physicsManager, levelToAttachTo, difficulty);
                break;

            case 10:
                enemyObj = new EnemyObj_Horse(player, physicsManager, levelToAttachTo, difficulty);
                break;

            case 11:
                enemyObj = new EnemyObj_IceWizard(player, physicsManager, levelToAttachTo, difficulty);
                break;

            case 12:
                enemyObj = new EnemyObj_Knight(player, physicsManager, levelToAttachTo, difficulty);
                break;

            case 13:
                enemyObj = new EnemyObj_Ninja(player, physicsManager, levelToAttachTo, difficulty);
                break;

            case 14:
                enemyObj = new EnemyObj_ShieldKnight(player, physicsManager, levelToAttachTo, difficulty);
                break;

            case 15:
                enemyObj = new EnemyObj_Skeleton(player, physicsManager, levelToAttachTo, difficulty);
                break;

            case 16:
                enemyObj = new EnemyObj_SwordKnight(player, physicsManager, levelToAttachTo, difficulty);
                break;

            case 17:
                enemyObj = new EnemyObj_Turret(player, physicsManager, levelToAttachTo, difficulty);
                break;

            case 18:
                enemyObj = new EnemyObj_Wall(player, physicsManager, levelToAttachTo, difficulty);
                break;

            case 19:
                enemyObj = new EnemyObj_Wolf(player, physicsManager, levelToAttachTo, difficulty);
                break;

            case 20:
                enemyObj = new EnemyObj_Zombie(player, physicsManager, levelToAttachTo, difficulty);
                break;

            case 21:
                enemyObj = new EnemyObj_SpikeTrap(player, physicsManager, levelToAttachTo, difficulty);
                break;

            case 22:
                enemyObj = new EnemyObj_Plant(player, physicsManager, levelToAttachTo, difficulty);
                break;

            case 23:
                enemyObj = new EnemyObj_Energon(player, physicsManager, levelToAttachTo, difficulty);
                break;

            case 24:
                enemyObj = new EnemyObj_Spark(player, physicsManager, levelToAttachTo, difficulty);
                break;

            case 25:
                enemyObj = new EnemyObj_SkeletonArcher(player, physicsManager, levelToAttachTo, difficulty);
                break;

            case 26:
                enemyObj = new EnemyObj_Chicken(player, physicsManager, levelToAttachTo, difficulty);
                break;

            case 27:
                enemyObj = new EnemyObj_Platform(player, physicsManager, levelToAttachTo, difficulty);
                break;

            case 28:
                enemyObj = new EnemyObj_HomingTurret(player, physicsManager, levelToAttachTo, difficulty);
                break;

            case 29:
                enemyObj = new EnemyObj_LastBoss(player, physicsManager, levelToAttachTo, difficulty);
                break;

            case 30:
                enemyObj = new EnemyObj_Dummy(player, physicsManager, levelToAttachTo, difficulty);
                break;

            case 31:
                enemyObj = new EnemyObj_Starburst(player, physicsManager, levelToAttachTo, difficulty);
                break;

            case 32:
                enemyObj = new EnemyObj_Portrait(player, physicsManager, levelToAttachTo, difficulty);
                break;

            case 33:
                enemyObj = new EnemyObj_Mimic(player, physicsManager, levelToAttachTo, difficulty);
                break;
            }
            if (player == null && !doNotInitialize)
            {
                enemyObj.Initialize();
            }
            return(enemyObj);
        }
Ejemplo n.º 9
0
 public static EnemyObj BuildEnemy(int enemyType, PlayerObj player, PhysicsManager physicsManager, ProceduralLevelScreen levelToAttachTo, GameTypes.EnemyDifficulty difficulty, bool doNotInitialize = false)
 {
     EnemyObj enemyObj = null;
     switch (enemyType)
     {
     case 1:
         enemyObj = new EnemyObj_BallAndChain(player, physicsManager, levelToAttachTo, difficulty);
         break;
     case 2:
         enemyObj = new EnemyObj_Blob(player, physicsManager, levelToAttachTo, difficulty);
         break;
     case 3:
         enemyObj = new EnemyObj_BouncySpike(player, physicsManager, levelToAttachTo, difficulty);
         break;
     case 4:
         enemyObj = new EnemyObj_Eagle(player, physicsManager, levelToAttachTo, difficulty);
         break;
     case 5:
         enemyObj = new EnemyObj_EarthWizard(player, physicsManager, levelToAttachTo, difficulty);
         break;
     case 6:
         enemyObj = new EnemyObj_Eyeball(player, physicsManager, levelToAttachTo, difficulty);
         break;
     case 7:
         enemyObj = new EnemyObj_Fairy(player, physicsManager, levelToAttachTo, difficulty);
         break;
     case 8:
         enemyObj = new EnemyObj_Fireball(player, physicsManager, levelToAttachTo, difficulty);
         break;
     case 9:
         enemyObj = new EnemyObj_FireWizard(player, physicsManager, levelToAttachTo, difficulty);
         break;
     case 10:
         enemyObj = new EnemyObj_Horse(player, physicsManager, levelToAttachTo, difficulty);
         break;
     case 11:
         enemyObj = new EnemyObj_IceWizard(player, physicsManager, levelToAttachTo, difficulty);
         break;
     case 12:
         enemyObj = new EnemyObj_Knight(player, physicsManager, levelToAttachTo, difficulty);
         break;
     case 13:
         enemyObj = new EnemyObj_Ninja(player, physicsManager, levelToAttachTo, difficulty);
         break;
     case 14:
         enemyObj = new EnemyObj_ShieldKnight(player, physicsManager, levelToAttachTo, difficulty);
         break;
     case 15:
         enemyObj = new EnemyObj_Skeleton(player, physicsManager, levelToAttachTo, difficulty);
         break;
     case 16:
         enemyObj = new EnemyObj_SwordKnight(player, physicsManager, levelToAttachTo, difficulty);
         break;
     case 17:
         enemyObj = new EnemyObj_Turret(player, physicsManager, levelToAttachTo, difficulty);
         break;
     case 18:
         enemyObj = new EnemyObj_Wall(player, physicsManager, levelToAttachTo, difficulty);
         break;
     case 19:
         enemyObj = new EnemyObj_Wolf(player, physicsManager, levelToAttachTo, difficulty);
         break;
     case 20:
         enemyObj = new EnemyObj_Zombie(player, physicsManager, levelToAttachTo, difficulty);
         break;
     case 21:
         enemyObj = new EnemyObj_SpikeTrap(player, physicsManager, levelToAttachTo, difficulty);
         break;
     case 22:
         enemyObj = new EnemyObj_Plant(player, physicsManager, levelToAttachTo, difficulty);
         break;
     case 23:
         enemyObj = new EnemyObj_Energon(player, physicsManager, levelToAttachTo, difficulty);
         break;
     case 24:
         enemyObj = new EnemyObj_Spark(player, physicsManager, levelToAttachTo, difficulty);
         break;
     case 25:
         enemyObj = new EnemyObj_SkeletonArcher(player, physicsManager, levelToAttachTo, difficulty);
         break;
     case 26:
         enemyObj = new EnemyObj_Chicken(player, physicsManager, levelToAttachTo, difficulty);
         break;
     case 27:
         enemyObj = new EnemyObj_Platform(player, physicsManager, levelToAttachTo, difficulty);
         break;
     case 28:
         enemyObj = new EnemyObj_HomingTurret(player, physicsManager, levelToAttachTo, difficulty);
         break;
     case 29:
         enemyObj = new EnemyObj_LastBoss(player, physicsManager, levelToAttachTo, difficulty);
         break;
     case 30:
         enemyObj = new EnemyObj_Dummy(player, physicsManager, levelToAttachTo, difficulty);
         break;
     case 31:
         enemyObj = new EnemyObj_Starburst(player, physicsManager, levelToAttachTo, difficulty);
         break;
     case 32:
         enemyObj = new EnemyObj_Portrait(player, physicsManager, levelToAttachTo, difficulty);
         break;
     case 33:
         enemyObj = new EnemyObj_Mimic(player, physicsManager, levelToAttachTo, difficulty);
         break;
     }
     if (player == null && !doNotInitialize)
     {
         enemyObj.Initialize();
     }
     return enemyObj;
 }
Ejemplo n.º 10
0
 private void CreateFairy(GameTypes.EnemyDifficulty difficulty)
 {
     EnemyObj_Fairy enemyObj_Fairy = new EnemyObj_Fairy(null, null, null, difficulty);
     enemyObj_Fairy.Position = base.Position;
     enemyObj_Fairy.DropsItem = false;
     if (this.m_target.X < enemyObj_Fairy.X)
     {
         enemyObj_Fairy.Orientation = MathHelper.ToRadians(0f);
     }
     else
     {
         enemyObj_Fairy.Orientation = MathHelper.ToRadians(180f);
     }
     enemyObj_Fairy.Level = base.Level - 7 - 1;
     this.m_levelScreen.AddEnemyToCurrentRoom(enemyObj_Fairy);
     enemyObj_Fairy.PlayAnimation(true);
     enemyObj_Fairy.MainFairy = false;
     enemyObj_Fairy.SavedStartingPos = enemyObj_Fairy.Position;
     enemyObj_Fairy.SaveToFile = false;
     if (LevelEV.SHOW_ENEMY_RADII)
     {
         enemyObj_Fairy.InitializeDebugRadii();
     }
     enemyObj_Fairy.SpawnRoom = this.m_levelScreen.CurrentRoom;
     enemyObj_Fairy.GivesLichHealth = false;
 }