Book Image

iOS 9 Game Development Essentials

By : Chuck Gaffney
Book Image

iOS 9 Game Development Essentials

By: Chuck Gaffney

Overview of this book

Table of Contents (15 chapters)
iOS 9 Game Development Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Model-View-Controller


Before we get into storyboards in iOS 9, it's best that we first discuss the basic flow of an iOS app and the concept of Model-View-Controller (MVC). Model-View-Controller is an architectural paradigm used in software engineering, programming, and even now in web design. We can think of the model portion of MVC as the logic or brains of an application's behavior. This logic is usually independent of the user interface and determines what to do with the app's data.

We've actually already gone over the model portion of MVC! The Swift programming language discussed in the previous chapter is that model; this is the case with its Objective-C predecessor and any other programming language used in iOS or any other game development. Your game's code controls what to do with the player, level, and enemy/goal data.

The view portion of MVC is the visual representation of the model. This of course would include the numerous visual aspects of our games, from our player's animation...