-
-
Notifications
You must be signed in to change notification settings - Fork 102
Riemers2DXNAoverview
This part of the site shows you how easy it is to get a 2D MonoGame program up and running! This tutorial is aimed at people who would to start game programming in MonoGame and see some nice results in the shortest possible time. To this end, MonoGame is an ideal programming environment. Using C# as programming language, the code looks very much like Java, so anyone having some notions of Java should be able to start right away. Even more, this tutorial is written in such a way that anyone who has any programming experience should be able to completely understand and complete it!
Each chapter of this series starts by explaining a 2D game programming concept, which is then put to practice by adding the code to our project. This helps you gradually building up your MonoGame skills, and in the end, you will have created a complete 2D game!
The game we will create looks pretty simple, but don’t be mistaken: at the end of the series you’ll know enough to create almost any 2D game!
Below I have listed some of the concepts you’ll learn in this series of tutorials:
- Installing MonoGame and opening your first MonoGame project
- Rendering 2D images to the screen
- Scaling, rotating and positioning 2D images
- Keyboard input
- Playing sound effects in MonoGame
- Per-pixel texture manipulations
- Random terrain slope generation
- Alpha blending
- Collision detection (the most complex case is covered: per-pixel transformed)
- And even a complete 2D particle engine for the explosions!
During this series you will need to download the following resources: This section will be updated once the entire series has been uploaded!
Below you can find some screenshots of this series of 2D MonoGame Tutorials. The code is written in such a way that you can easily adjust the resolution. For an example of a larger screenshot, click here.
During this series you will need to download the following resources:
You can find the full upgraded source for this chapter here:
- Starting your MonoGame 4.0 Project
- Drawing a full-screen background image
- Specifying the position of an image on the screen
- More powerful features of the SpriteBatch
- Rotation – Drawing the cannon
- Reading out the Keyboard
- Writing text to the screen in XNA
- Launching the rocket
- Making the rocket move
- Adding the smoke trail
- Defining the colors of a texture per-pixel
- Random terrain generation
- Texture to an array of colors
- 2D Collision Detection
- 2D Transformation matrices
- Putting Collision Detection into practice
- Particles
- Additive alpha blending
- Particle engine
- Adding explosion craters
- Playing sound effects
- Resolution independency