Game Development Reference
In-Depth Information
Figure 9-15. An illustration of the various scaling options
This will scale the screen to fit an entirely different resolution, and the settings to choose from are
Application.NO_SCALE : No scaling is applied and the screen is aligned to the
top-left corner. On a device with a larger screen, the area beyond the size of the
project screen is left blank.
Application.CENTER : No scaling is applied but the screen is centered and
displayed.
Application.PIXEL_PERFECT : The screen is set to the exact pixels that are
available on the device.
Application.LETTERBOX : The screen is displayed in letterbox mode with banding
on the sides.
Application.CROP : The excess area when scaled is cropped off
Application.STRETCH : The screen is stretched to fit the device resolution, and
the aspect ratio is not considered.
Application.FIT_HEIGHT : The screen is scaled to the height of the device's
screen.
Application.FIT_WIDTH : The screen is scaled to the width of the device's
screen.
Adding Sound Effects
If you're creating a game, it's important to include sound effects—for example, thumping beats to
create suspense or soothing melodies to accompany calmer moments. This section will describe
how to include sound effects for your game.
 
Search WWH ::




Custom Search