public BallView(GraphicsDevice device, ContentManager content, BallSimulation ballSimulation) { spriteBatch = new SpriteBatch(device); camera = new Camera(device, ballSimulation.WallThickness, ballSimulation.Dissort); this.ballSimulation = ballSimulation; //Loads all the pictures LoadGraphics(content); }
/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { ballSimulation = new BallSimulation(GraphicsDevice); ballSimulation.CanTakeCommand = true; ballView = new BallView(GraphicsDevice, Content, ballSimulation); }