protected override void LoadContent() { spriteBatch = new SpriteBatch(GraphicsDevice); ScreenWidth = GraphicsDevice.Viewport.Width; ScreenHeight = GraphicsDevice.Viewport.Height; blockTexture = Content.Load <Texture2D>("block"); font = Content.Load <SpriteFont>("genericFont"); // World world = new World(); // Controllers player1Controller = new PlayerController(world.player1, InputType.Keyboard, PlayerIndex.One); mouseController = new MouseController(world, InputType.Mouse, PlayerIndex.One); // Views playerView = new PlayerView(world.player1, blockTexture); playerViewText = new PlayerViewText(world.player1, font); playerViewGrid = new PlayerViewGrid(world.player1, blockTexture); tileView = new TileView(world.tiles, blockTexture); ballView = new BallView(world.ball, blockTexture); }
protected override void LoadContent() { spriteBatch = new SpriteBatch(GraphicsDevice); ScreenWidth = GraphicsDevice.Viewport.Width; ScreenHeight = GraphicsDevice.Viewport.Height; blockTexture = Content.Load<Texture2D>("block"); font = Content.Load<SpriteFont>("genericFont"); // World world = new World(); // Controllers player1Controller = new PlayerController(world.player1, InputType.Keyboard, PlayerIndex.One); mouseController = new MouseController(world, InputType.Mouse, PlayerIndex.One); // Views playerView = new PlayerView(world.player1, blockTexture); playerViewText = new PlayerViewText(world.player1, font); playerViewGrid = new PlayerViewGrid(world.player1, blockTexture); tileView = new TileView(world.tiles, blockTexture); ballView = new BallView(world.ball, blockTexture); }