public MasterController()
        {
            graphics = new GraphicsDeviceManager (this);
            Content.RootDirectory = "Content";
            graphics.IsFullScreen = false;

            this.ballSimulation = new BallSimulation ();
        }
Exemplo n.º 2
0
        public BallView(BallSimulation ballSimulation, ContentManager content, GraphicsDevice device, Camera camera)
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            this.spriteBatch = new SpriteBatch (device);
            this.ballTexture = content.Load<Texture2D> ("ball.png");

            this.ballSimulation = ballSimulation;
            this.camera = camera;
        }