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.

Links from the tutorial:

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.


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:

Monogame Lesson 1 - Titles, Textures and Colors.pdf

Programming Assignment

Monogame Lesson 1 - Titles, Textures and Colors Assignment.pdf

Video Tutorials

Basics of a Monogame Program

Adding Content

Editing Images using Photopea

https://www.photopea.com/

Files