Apress beginning iOS 5 games development, using the iOS 5 SDK for ipad iphone and ipod touch (2011)

341 364 0
Apress beginning iOS 5 games development, using the iOS 5 SDK for ipad iphone and ipod touch (2011)

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... both the iPad and the iPhone On the iPhone, the application is running in portrait view, while on the iPad the game is running in landscape view Not every game needs to support all devices and orientations, but some do In this chapter, you will learn how to get a project off on the right foot, so you don’t have to fight with it down the road Chapter 3 Chapter 3 is concerned with understanding the life... navigation In Figure 1–7, we see that we have dragged a UIButton from the library item A onto each of the views We gave the UIButton on the left the label Play, and the UIButton on the right the label Back To make the Play button navigate to the view on the right, we rightdrag from the Play button (item B) to the view on the right and release at item C When we do this, a context dialog pops up, allowing... creating a project that can be used for the deployment on the iPhone and the iPad, handling both landscape and portrait orientations We look at how an iOS application is initialized and where we can start customizing behavior to match our expectations of how the application should perform We will also explore how user interface (UI) elements are created and modified in an iOS application, paying special... 2–1 An application design to work on the iPhone and iPad in all orientations Figure 2–1 shows the application running on an iPhone and iPad simulator This is a socalled universal application: it can run on both devices and would be presented in the App Store as such Unless there are specific business reasons for writing an app that only works on the iPhone or the iPad, it makes a lot of sense to make... have never been completed My wife and family deserve praise for helping me find the time to get this work done Thank you, Tony Hillerson, for providing the technical editing Lastly, special thanks to the rest of the Apress staff that helped get this book out the door in time for the iOS 5 release xi Introduction This book is an introduction to game development for Apple’s iOS devices I hope you are reading... selected Model We can repeat the process for the Back button: right-drag it to the view on the left and select which transition you want for the return trip You can run the application at this point and navigate between these two views In order to make it a game, though, we need to include the Rock, Paper, Scissors view and buttons Adding the Rock, Paper, Scissors View To add the Rock, Paper, Scissors... down the road, even if you only intend to release your app on one of the devices to start Our sample application is so simple that it may be difficult to see the differences between the four states presented in Figure 2–1 On the upper left, where the iPhone is in portrait orientation, the position of the gray area is laid out differently from the iPhone in landscape at the bottom left The layout of the. .. makes the developer some money Chapter 11 In Chapter 11, we review all you have learned by walking through the sample game, Belt Commander We look at how the application is organized in terms of views and the navigation between them We look at the specifics of extending GameController to define the logic that governs how the game is played and the interactions between the actors We also look at the code... exploration of Xcode and the game project In this chapter, we talk about UIViewControllers and how they are designed to encapsulate functionality into reusable components We will also address the issue of the different devices and orientations and applications you must work with, as shown in Figure 2 Figure 2 A simple game in portrait view on the iPhone and landscape view on the iPad In Figure 2, we... developing a cool new game for the iPhone or iPad It is the goal of this book to educate the reader on the many facets of building a game The topics range from the mundane tasks of organizing your start screen to the subtle math required to get an animation just right By the end of this book, you will be familiar with not just the details of animating images, but also the many other details that go into . Beginning iOS 5 Games Development Using the iOS 5 SDK for iPad, iPhone, and iPod Touch ■ ■ ■ Lucas Jordan Beginning iOS 5 Games Development: Using the iOS 5 SDK for iPad, iPhone, . portrait view on the iPhone and landscape view on the iPad In Figure 2, we see a simple Rock, Paper, Scissors game being run on both the iPad and the iPhone. On the iPhone, the application is. you, Tony Hillerson, for providing the technical editing. Lastly, special thanks to the rest of the Apress staff that helped get this book out the door in time for the iOS 5 release. xii Introduction

Ngày đăng: 24/04/2014, 10:13

Từ khóa liên quan

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan