コード例 #1
0
        public MasterController()
        {
            graphics = new GraphicsDeviceManager (this);
            Content.RootDirectory = "Content";
            graphics.IsFullScreen = false;

            this.ballSimulation = new BallSimulation ();
        }
コード例 #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;
        }