Пример #1
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);
 }
Пример #2
0
 public ShieldParticle(Vector2 position, Vector2 direction) : base(position, direction)
 {
     Renderer = new ShieldParticleRenderer(this);
 }