Example #1
0
 public ShellExplode( Vector2 pos, float rota )
 {
     shellTexs = CreateTexs();
     shellTexs.SetSpritesParameters( new Vector2( 49, 49 ), pos, 30, 30, rota + MathHelper.PiOver2, Color.White, LayerDepth.Shell, SpriteBlendMode.AlphaBlend );
     shellTexs.Interval = 1;
     shellTexs.Start( 0, 32, true );
 }
Example #2
0
        private void LoadResource(Vector2 pos, float azi)
        {
            animate = new AnimatedSpriteSeries(BaseGame.RenderEngine);
            animate.LoadSeriesFromFiles(BaseGame.RenderEngine, Path.Combine(Directories.ContentDirectory, "Rules\\SpaceWar\\image"), "field_coin_00", ".png", 1, 5, false);
            animate.SetSpritesParameters(new Vector2(32, 32), pos, 1, azi, Color.White, LayerDepth.GroundObj, SpriteBlendMode.AlphaBlend);
            GameManager.AnimatedMgr.Add(animate);
            animate.Interval = 10;
            animate.Start();

        }