Lesson 1 - Creating a Monogame Project
This section will cover how to create a new Monogame project and explain the basics of the template files. You will also learn how to add images to your project using the Monogame Content Builder (MGCB) tool and how to draw them.
Lesson 1 - Monogame Basics
What to Do?
1 - Complete the tutorial on the basics of Monogame.
Text version, video or follow along in class.
Monogame Basics Youtube link: https://www.youtube.com/watch?v=hRLPUfT5ndw
Adding Content Youtube link: https://www.youtube.com/watch?v=46hwo3VJYsw
Editing images using Photopea Youtube link: https://www.youtube.com/watch?v=kc07RSsUio8
GitHub program solution: https://github.com/AldworthClass/Monogame-1-Introduction
Links from the tutorial:
Understanding the code: https://docs.monogame.net/articles/getting_started/3_understanding_the_code.html
Adding content: https://docs.monogame.net/articles/getting_started/4_adding_content.html
By the end you should know:
Basics of a Monogame Project including:
Constructor method
Initialize() method
LoadContent() method
Update() method
Draw() method
How to resize your window.
How to add a title.
How to change the color.
How to add content using the MGCB tool:
Add image to project Content.
Declare and create a Texture2D object.
Load image from Content into Texture2D object.
Draw Texture2D using the Draw() method to a location (Vector2)
How to make a transparent background and crop an image.
Using image editing software such as Adobe Photoshop.
2 - Complete the Lesson 1 - Titles, Textures and Colors Assignment.
What to Submit?
1 - Submit a link to your GitHub repository for Lesson 1 - Titles, Textures and Colors Assignment.
For a Level 4+, you must complete some of the 'Challenges'.
Lesson Tutorial
Image(s) for tutorial:
Programming Assignment
Video Tutorials
Basics of a Monogame Program
Adding Content
Editing Images using Photopea