Contents
Can you make a 2D game in MonoGame?
In this MonoGame Tutorial, I’ll walk you through the creation of a 2D Game using MonoGame and C#. The game we’ll be creating is called “Bricks”, which is similar to the old “Breakout” arcade game. By the time you complete the tutorial, you’ll be able to create a new MonoGame project.
Is the MonoGame API compatible with XNA 4?
MonoGame is an open source implementation of the Microsoft XNA 4 Framework. Our goal is to allow people to make great games using a simple API. If you cannot find what you need here you can also look at the Microsoft XNA documentation. MonoGame is API compatible with XNA even down to the namespaces.
Can a C # game be made with XNA?
XNA allows C# developers to access DirectX from C#. C++ is still the go-to solution if you need to squeeze the absolute last bit of performance out of a PC, but C# is now a very credible solution for gaming development. In fact, it has been used by many commercial games today. Unfortunately, Microsoft discontinued XNA development in 2013.
How to create a MonoGame project in C #?
Under Installed/Templates/Visual C#, you will notice that several MonoGame project templates are available. For this tutorial, select MonoGame Windows Project. In the Project Name field, enter “Bricks”, which is the name we’ll use for our project. Then click the OK button to create the project:
Which is the best game for a MonoGame tutorial?
Breakout is one of the earliest video games ever developed. It offers interesting game play, but the mechanics are simple, so it provides a good subject for a MonoGame tutorial. In the game, there is a wall of several rows of bricks at the top of the screen. A ball is bounced off a movable paddle at the bottom of the screen.
How do you close a game in MonoGame?
Go ahead and click F5 to run the application. You will see a new window created with the title of our project “Bricks”, and a light blue background. You can just hit the Esc key to close the window (or click the X button in the upper right of the window), to close the game.
What happens when a ball hits a brick in MonoGame?
In the game, there is a wall of several rows of bricks at the top of the screen. A ball is bounced off a movable paddle at the bottom of the screen. It travels across the screen. If the ball hits the side or top walls of the screen it bounces. If it hits a brick, the brick is destroyed.
Where do I find MonoGame on my Mac?
Along the left hand side scroll down and locate Other->Miscellaneous. On the right hand side you should see a number of preconfigured MonoGame templates. For this example we are going to target only Mac OS using Xamarin’s Mac libraries, so select MonoGame Mac Application (Xamarin.Mac), then click Next.
How to create a MonoGame template in Xamarin?
Once Xamarin loads, select New Solution… In the resulting dialog, next select the project template to get started. Along the left hand side scroll down and locate Other->Miscellaneous. On the right hand side you should see a number of preconfigured MonoGame templates.