O'Reilly logo

GameMaker: Studio For Dummies by Michael Rohde

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required