We want to force the app to stay in portrait orientation. The scaling doesn’t really matter for this particular game. It scales up because the scene’s scaleMode property is set to SKSceneScaleModeAspectFill in the RCWViewController.m file by default. But if the device is rotated while playing, the game will also rotate with it and look weird because of the way the scene scales to fill the width. Before we can wrap up our discussion of the pinball game, we should make two minor changes to the app to get it ready for players.įirst, the pinball game should not allow auto-rotation to landscape mode. We’ve talked about UIKit out of necessity to integrate with the rest of Apple’s ecosystem for iOS applications. Locking the Game to Portrait and Removing the Status BarĪs you know, this is a book about Sprite Kit.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |