Building 2D Games with MonoGame
This repository contains the complete source code and examples for the "Building 2D Games with MonoGame" tutorial series. The series guides you through creating a fully functional 2D game called "Dungeon Slime" while teaching fundamental game development concepts.
The completed game is a snake-like experience with a dungeon theme, featuring:
- Animated sprites with smooth movement.
- Tile-based level design.
- Sound effects and background music.
- Custom UI with menus and gameplay information.
- Visual effects using shaders.
- Complete gameplay loop with scoring and game states.
 |
 |
| The title screen of Dungeon Slime |
Gameplay of Dungeon Slime |
About the Tutorial
This tutorial series walks you through the complete process of building a 2D game using MonoGame, from setting up your development environment to publishing your finished game. Each chapter builds upon previous knowledge, gradually introducing new concepts and techniques.
The tutorial is designed for:
- Developers with basic C# knowledge looking to get started with game development.
- Programmers interested in learning MonoGame's approach to cross-platform game creation.
- Anyone wanting to understand the fundamentals of 2D game development.
Tutorial Structure
The tutorial series is organized into 27 chapters, each focusing on specific aspects of game development:
Getting Started with MonoGame
Graphics and Rendering
Input and Interaction
Audio and User Interface
Game Mechanics and Distribution
Repository Structure
Each chapter's source code is contained in its own folder, allowing you to:
- See the progressive development of the game throughout the tutorial.
- Compare implementations between chapters to understand new concepts.
- Use specific chapters as starting points for your own projects.
Getting Started
To begin using this repository:
- Clone or download the repository.
- Follow the setup instructions in Chapter 02: Getting Started.
- Each chapter folder contains a complete, working project representing that stage of development.
- For the full learning experience, we recommend following the tutorial chapters in sequence.
Resources
For additional help and information: