Lesson 2 - Scaling Using Rectangles

This lesson will show you how you can use a Rectangle in order to keep track, and scale the size of a texture that you draw. It also covers how to add text to a game.

Lesson 2 - Scaling Using Rectangles

What to Do?

1 - Complete the tutorial on Scaling Using Rectangles, including the part on adding text.

2 - Complete the Your Task programming component of the tutorial:

  • Using the rectangle and circle images, draw a simple picture demonstrating an ability to draw scaled images at various location.

  • Add some text to this image.

  • OR try to Monogame challenge described below.


Links from the tutorial:


By the end you should know:

  • Understand the coordinate system of a Monogame project.

  • How to draw a texture at a desired location, and at a desired size using a Rectangle.

  • How to draw text in a Monogame project.

            • Change size, type, effects.

What to Submit

1 - The programming task specified in the Your Task portion of the tutorial.

  • A very simple picture made up of various rectangles and circles that have been scaled.

  • Must include some text.

Lesson Tutorial - Scaling Textures and Text

Images for tutorial:

Monogame Lesson 2 - Saling Using Rectangles.pdf

Monogame Lesson 2 Challenge

Monogame Lesson 2 - Programming Task Challenge.pdf

Video Tutorials

Video 1 - Scaling with Rectangles

Video 2 - Adding Text

Files