Example #1
0
 protected override void LoadContent()
 {
     spriteBatch       = new SpriteBatch(GraphicsDevice);
     assets            = new AssetStore(Content, GraphicsDevice, new AnimationFactory());
     postProcessEffect = Content.Load <Effect>("effects/PostProcess");
     effects           = new Effects(Content.Load <Effect>("effects/SolidThing"),
                                     Content.Load <Effect>("effects/SpiritRealm"),
                                     Content.Load <Effect>("effects/Background"));
     emitterFactory = new ParticleEmitterFactory(assets);
     world          = new World(new EntityFactory(assets),
                                new RoomBackground(assets.BrickTile, assets.TorchLight, new Vector2(4000, 4000), spriteBatch), // Hack
                                emitterFactory);
 }
Example #2
0
 public ParticleEmitterFactory(AssetStore assets)
 {
     this.assets = assets;
 }
Example #3
0
 public EntityFactory(AssetStore assets)
 {
     this.assets = assets;
 }