/// <summary> /// Constructs a new particle emitter object. /// </summary> public ParticleEmitter(ParticleSystem particleSystem, float particlesPerSecond, Vector3 initialPosition) { this.particleSystem = particleSystem; timeBetweenParticles = 1.0f / particlesPerSecond; previousPosition = initialPosition; }
public PressStartState(Game game) : base(game) { camera = new Camera(game); magicMissilePartilces = new PressStartParticleSystem(game, game.Content); magicMissilePartilces2 = new PressStart2ParticleSystem(game, game.Content); magicMissilePartilces3 = new PressStart3ParticleSystem(game, game.Content); }
public SpellHandler(Game game) : base(game) { // TODO: Construct any child components here spells = new List<Spell>(); staticSpellModels = new List<StaticModel>(); spellReference = new List<Spell>(); learnedSpells = new List<Spells>(); killEnemyParticles = new SpellExplosionParticleSystem(game, game.Content); fireBallParticles = new FireParticleSystem(game, game.Content); slowEnemyParticles = new SlowParticleSystem(game, game.Content); poisonEnemyParticles = new PoisonParticleSystem(game, game.Content); magicMissilePartilces = new MagicMissileParticleSystem(game, game.Content); }
public EnemyHandler(Game game) : base(game) { enemyModels = new List<StaticModel>(); animatedEnemyModels = new List<AnimatedModel>(); enemies = new List<Enemy>(); spawnEnemyTypes = new List<Enemies>(); killEnemyParticles = new ExplosionParticleSystem(game, game.Content); bloodParticles = new BloodParticleSystem(game, game.Content); ghostParticles = new GhostParticleSystem(game, game.Content); poisonEnemyParticles = new PoisonParticleSystem(game, game.Content); spawnNewEnemy = 1000; // TODO: Construct any child components here }
public LevelState(Game game) : base(game) { // TODO: Construct any child components here player = new Player(game); camera = new Camera(game); scenery = new Scenery(game); castleHandler = new CastleHandler(game); spellHandler = new SpellHandler(game); enemyHandler = new EnemyHandler(game); fireBallParticles = new FireParticleSystem(game, game.Content); slowEnemyParticles = new SlowParticleSystem(game, game.Content); poisonEnemyParticles = new PoisonParticleSystem(game, game.Content); magicMissilePartilces = new MagicMissileParticleSystem(game, game.Content); dirtPartilces = new DirtParticleSystem(game, game.Content); spellIcons = new List<Texture2D>(); }