public EnemyExplosionAnimation(AnimationManager pParent, Texture2D pTexture, int nMaxColumns, float fTimePerFrame)
 {
     m_pParent = pParent;
     m_pAnimation = new SimpleAnimation(pTexture, Vector2.Zero, 0, nMaxColumns, fTimePerFrame);
     m_pAnimation.Loop = false;
     m_pAnimation.Play = false;
 }
Beispiel #2
0
 public void LoadContent(ContentManager pContent)
 {
     m_pBackgroundPosition = Vector2.Zero;
     m_pBackground = pContent.Load<Texture2D>("GFX\\Level\\arena_400x528");
     m_pFence = new SimpleAnimation(pContent.Load<Texture2D>("GFX\\Level\\props_anim_16ms"), Vector2.Zero, 1, 4, 64);
     m_pBackdrop = new SimpleAnimation(pContent.Load<Texture2D>("GFX\\Level\\backdrop_1440x720"), Vector2.Zero, 1, 1, 0);
     m_pBackdrop.DepthLayer = 0.25f;
     m_pFence.DepthLayer = 0.25f;
     m_pOrigin = new Vector2(m_pBackground.Width/2, m_pBackground.Height/2);
     m_pSourceRectangle = new Rectangle(0, 0, m_pBackground.Width, m_pBackground.Height);
 }