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.
Text version, video tutorials, or follow along in class.
Scaling Video Youtube link: https://www.youtube.com/watch?v=u5b6W2w99l0
Adding Text Youtube link: https://www.youtube.com/watch?v=XQSLaBJzG7k
GitHub program solution:https://github.com/AldworthClass/Monogame-2---Scaling-With-Rectangles
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:
Adding content review: https://docs.monogame.net/articles/getting_started/4_adding_content.html
Adding Text Tutorial (not mine): http://rbwhitaker.wikidot.com/monogame-drawing-text-with-spritefonts
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 Challenge
Video Tutorials
Video 1 - Scaling with Rectangles
Video 2 - Adding Text