protected override void Cleanup()
        {
            player.Renderer.Cleanup();
            EnemyShipRenderer.Cleanup();
            StellarRenderer.Cleanup();
            AnimatedStellarRenderer.Cleanup();
            ui.Cleanup();

            base.Cleanup();
        }
 protected override void Load(IntPtr rendererPtr)
 {
     background.LoadInit(rendererPtr, "assets/textures/stars01_brightstarts.png");
     PlayerShipRenderer.LoadInit(rendererPtr, "assets/textures/playersheet.png");
     ParticleRenderer.LoadInit(rendererPtr, "assets/textures/PlayerFire.png");
     ProjectileRenderer.LoadInit(rendererPtr, "assets/textures/PlayerFire.png", "assets/textures/EnemyFire.png");
     StellarRenderer.LoadInit(rendererPtr, "assets/textures/star01.png");
     AnimatedStellarRenderer.LoadInit(rendererPtr, "assets/textures/star_blue_fixed.png");
     ShieldRenderer.LoadInit(rendererPtr, "assets/textures/Shield.png");
     ShieldParticleRenderer.LoadInit(rendererPtr, "assets/textures/ShieldParticle.png");
     ExplosionParticleRenderer.LoadInit(rendererPtr, "assets/textures/ExplosionParticle.png");
     EnemyShipRenderer.LoadInit(rendererPtr, "assets/textures/enemysheet.png");
     ui.LoadInit(rendererPtr);
 }
Exemple #3
0
 public AnimatedStellarObject(Vector2 position, float mass) : base(position, mass)
 {
     Renderer = new AnimatedStellarRenderer(this);
 }