/// <summary>
 /// LoadContent will be called once per game and is the place to load
 /// all of your content.
 /// </summary>
 protected override void LoadContent()
 {
     // Create a new SpriteBatch, which can be used to draw textures.
     spriteBatch = new SpriteBatch(GraphicsDevice);
     // TODO: use this.Content to load your game content here
     smokecloud = Content.Load<Texture2D>("smoke.png");
     smokesystem = new Smokesystem(smokecloud); //Creates a new instance of splittersystem
     camera.setFieldSize(graphics.GraphicsDevice.Viewport);
 }
        public Applicationview(ContentManager _content,Camera _camera,SpriteBatch _spritebatch)
        {
            content = _content;
            camera = _camera;
            spritebatch = _spritebatch;

            splittertexture = content.Load<Texture2D>("spark");
            smoketexture = content.Load<Texture2D>("smoke");
            explosiontexture = content.Load<Texture2D>("explosion");
            shockwavetexture = content.Load<Texture2D>("Shockwave");

            splittersystem = new SplitterSystem(splittertexture, spritebatch, camera, scale, startpos);
            smokesystem = new Smokesystem(smoketexture, spritebatch, camera, startpos);

            explosion = new Explosion(explosiontexture, spritebatch, camera, scale, startpos);
            shockwave = new Shockwave(shockwavetexture, spritebatch, camera, startpos);
        }
Ejemplo n.º 3
0
        public Applicationview(ContentManager _content, Camera _camera, SpriteBatch _spritebatch)
        {
            content     = _content;
            camera      = _camera;
            spritebatch = _spritebatch;

            splittertexture  = content.Load <Texture2D>("spark");
            smoketexture     = content.Load <Texture2D>("smoke");
            explosiontexture = content.Load <Texture2D>("explosion");
            shockwavetexture = content.Load <Texture2D>("Shockwave");

            splittersystem = new SplitterSystem(splittertexture, spritebatch, camera, scale, startpos);
            smokesystem    = new Smokesystem(smoketexture, spritebatch, camera, startpos);

            explosion = new Explosion(explosiontexture, spritebatch, camera, scale, startpos);
            shockwave = new Shockwave(shockwavetexture, spritebatch, camera, startpos);
        }