예제 #1
0
 public void Initialize()
 {
     for (var i = 0; i < m_poolSize; i++)
     {
         var itemDropObj = new ItemDropObj("Coin_Sprite");
         itemDropObj.Visible = false;
         m_itemDropPool.AddToPool(itemDropObj);
     }
 }
예제 #2
0
 public void Initialize()
 {
     for (var i = 0; i < m_poolSize; i++)
     {
         var projectileObj = new ProjectileObj("BoneProjectile_Sprite");
         projectileObj.Visible        = false;
         projectileObj.AnimationDelay = 0.05f;
         projectileObj.OutlineWidth   = 2;
         m_projectilePool.AddToPool(projectileObj);
     }
 }
예제 #3
0
 public void Initialize()
 {
     for (var i = 0; i < m_poolSize; i++)
     {
         var projectileIconObj = new ProjectileIconObj();
         projectileIconObj.Visible      = false;
         projectileIconObj.ForceDraw    = true;
         projectileIconObj.TextureColor = Color.White;
         m_resourcePool.AddToPool(projectileIconObj);
     }
 }
예제 #4
0
 public void Initialize()
 {
     for (var i = 0; i < m_poolSize; i++)
     {
         var textObj = new TextObj();
         textObj.Visible      = false;
         textObj.TextureColor = Color.White;
         textObj.OutlineWidth = 2;
         m_resourcePool.AddToPool(textObj);
     }
 }
예제 #5
0
 public void Initialize()
 {
     for (int i = 0; i < m_poolSize; i++)
     {
         m_resourcePool.AddToPool(new RogueAPI.Effects.EffectSpriteInstance("Blank_Sprite")
         {
             AnimationDelay = 0.0333333351f,
             Visible        = false,
             TextureColor   = Color.White
         });
     }
 }
예제 #6
0
 public EnemyObj_Energon(PlayerObj target, PhysicsManager physicsManager, ProceduralLevelScreen levelToAttachTo,
                         GameTypes.EnemyDifficulty difficulty)
     : base("EnemyEnergonIdle_Character", target, physicsManager, levelToAttachTo, difficulty)
 {
     Type     = 23;
     m_shield = new SpriteObj("EnergonSwordShield_Sprite");
     m_shield.AnimationDelay = 0.1f;
     m_shield.PlayAnimation();
     m_shield.Opacity = 0.5f;
     m_shield.Scale   = new Vector2(1.2f, 1.2f);
     m_projectilePool = new DS2DPool <EnergonProjectileObj>();
     for (var i = 0; i < (int)m_poolSize; i++)
     {
         var energonProjectileObj = new EnergonProjectileObj("EnergonSwordProjectile_Sprite",
                                                             this);
         energonProjectileObj.Visible             = false;
         energonProjectileObj.CollidesWithTerrain = false;
         energonProjectileObj.PlayAnimation();
         energonProjectileObj.AnimationDelay = 0.05f;
         m_projectilePool.AddToPool(energonProjectileObj);
     }
 }