

- INSTALLING MONOGAME FOR VISUAL STUDIO C# 2013 INSTALL
- INSTALLING MONOGAME FOR VISUAL STUDIO C# 2013 WINDOWS
The EventHub client library in the post mentioned above is for. We won’t mess about with collision, as this isn’t about the game, it’s about the Event Hub traffic. The next step is that we want to see the ball from the first screen on the second. If you installed this on a second machine, they would also be able to move that ball as well at this stage, neither screen would be aware in any sense of the other screen. SpriteBatch.DrawCircle(_playerPosition, 10f, 30, new Color(255, 0, 0), 10) Īs you can see from the above code, we’re just moving a ball around the screen. GraphicsDevice.Clear(Color.CornflowerBlue) _playerPosition.X += (float)_momentumRight If (Keyboard.GetState().IsKeyDown(Keys.A) || Keyboard.GetState().IsKeyDown(Keys.Left))Įlse if (Keyboard.GetState().IsKeyDown(Keys.D) || Keyboard.GetState().IsKeyDown(Keys.Right))Įlse if (Keyboard.GetState().IsKeyDown(Keys.W) || Keyboard.GetState().IsKeyDown(Keys.Up))Įlse if (Keyboard.GetState().IsKeyDown(Keys.X) || Keyboard.GetState().IsKeyDown(Keys.Down)) If (GamePad.GetState(PlayerIndex.One).Buttons.Back = ButtonState.Pressed || Keyboard.GetState().IsKeyDown(Keys.Escape)) Protected override void Update(GameTime gameTime) SpriteBatch = new SpriteBatch(GraphicsDevice) Graphics = new GraphicsDeviceManager(this) Let’s start off with a really simple game – this basically gives you a red dot on the screen, and you can move it around:
INSTALLING MONOGAME FOR VISUAL STUDIO C# 2013 INSTALL
For the purpose of this example, you’ll need to install the MonoGame.Extended NuGet package.
INSTALLING MONOGAME FOR VISUAL STUDIO C# 2013 WINDOWS
Once you’ve installed MonoGame, in VS create a new project you’ll be beset by MonoGame project types:įor now, we’ll create a Windows MonoGame Project. I’ve heard a lot of rumours about Microsoft buying Unity (which I believe is ultimately based on MonoGame) so it’s odd that they wouldn’t want to take this over (especially given that it’s a fork of XNA). This was released over a year ago, so maybe that says something about the direction this game platform is going. At the time of writing, 3.6 was the latest version. The first step is to install the MonoGame framework from here. I’ve previously written extensively on MonoGame, although I haven’t done anything with it for a while. In this post, I’m going to attempt to create a very basic multi-player game, using Event Hubs to manage the multi-player part. In this previous post, I introduced Azure Event Hubs (to myself mostly).
