//List<ExplosionView> explosions = new List<ExplosionView>(); //List<SmokeSystem> smokes = new List<SmokeSystem>(); public GameView(GraphicsDeviceManager graphics, BallSimulation BallSimulation, ContentManager Content, Camera camera) { LoadSprites(Content, graphics); _camera = camera; _ballSimulation = BallSimulation; int screenSize = _camera.getSizeOfField(); _rect = new Rectangle(_camera.bordersize, _camera.bordersize, screenSize, screenSize); }
/// <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. camera.setSizeOfField(graphics.GraphicsDevice.Viewport); spriteBatch = new SpriteBatch(GraphicsDevice); ballSimulation = new BallSimulation(); gameView = new GameView(graphics, ballSimulation, Content, camera); explosionSystem = new ExplosionSystem(camera, Content); // TODO: use this.Content to load your game content here }