Chapter 10

Applying Scaling

In This Chapter

arrow Working with the Global Game Settings

arrow Scaling to Windows

arrow Drawing GUI Elements

arrow Scaling for HTML5

In this chapter, I cover resolution and scaling. Resolution is all about pixels per inch — a resolution of 1,920 x 1,200 means that a screen has 1,920 pixels horizontally and 1,200 lines vertically. Scaling is all about matching your game’s graphics to the actual size of the player’s screen. This chapter gets you started writing code to make your games fit the screen, whether you’re playing on a large monitor, a mobile phone, or a tablet.

This chapter explains how to code for proper resolution and scaling for different screen sizes for the Windows 7 platform, which works great on all desktops, including Mac and Linux. This provides a foundation to learn about additional platforms such as HTML5, iOS, Android, and others.

The procedures in this chapter work together with the in-software tutorial “The_Application_Surface_Scaling.” When creating the proper resolution and scaling for your games, you’re manipulating the application surface. I cover ...

Get GameMaker: Studio For Dummies now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.