/// <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); camera = new Camera(graphics.GraphicsDevice.Viewport); gameArea = new Texture2D(graphics.GraphicsDevice, 1, 1); gameArea.SetData<Color>(new Color[] { Color.White }); smokeHandler = new SmokeHandler(); gameView = new GameView(smokeHandler, graphics); smokeSprite = Content.Load<Texture2D>("particlesmoke"); // TODO: use this.Content to load your game content here }
/// <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); camera = new Camera(graphics.GraphicsDevice.Viewport); gameArea = new Texture2D(graphics.GraphicsDevice, 1, 1); gameArea.SetData <Color>(new Color[] { Color.White }); smokeHandler = new SmokeHandler(); gameView = new GameView(smokeHandler, graphics); smokeSprite = Content.Load <Texture2D>("particlesmoke"); // TODO: use this.Content to load your game content here }
public GameView(SmokeHandler smokeHandler, GraphicsDeviceManager graphics) { screenSize = new Vector2(graphics.GraphicsDevice.Viewport.X, graphics.GraphicsDevice.Viewport.Y); smokeHandler = new SmokeHandler(); this.smokeHandler = smokeHandler; }