Ejemplo n.º 1
0
        public StellarBase(Vector2 position, float mass)
        {
            stellarObjects.Add(this);
            this.Position = position;
            this.Mass     = mass;

            Renderer = new StellarRenderer(this);
        }
Ejemplo n.º 2
0
        protected override void Cleanup()
        {
            player.Renderer.Cleanup();
            EnemyShipRenderer.Cleanup();
            StellarRenderer.Cleanup();
            AnimatedStellarRenderer.Cleanup();
            ui.Cleanup();

            base.Cleanup();
        }
Ejemplo n.º 3
0
 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);
 }