Advertisement

Game Building Blocks

  • Steffen Itterheim
  • Andreas Löw

Abstract

The game DoodleDrop in Chapter 4 was written to be easy to understand if you’re new to cocos2d. If you’re a more experienced developer, though, you probably noticed that there’s no separation of code—everything is in just one file. Clearly, that doesn’t scale, and if you’re going to make bigger, more exciting games than DoodleDrop, you’ll have to find a suitable way to structure your code. Otherwise, you might end up with one class driving your game’s logic. The code size can quickly grow to thousands of lines, making it hard to navigate and tempting to change anything from anywhere, very likely introducing subtle and hard-to-find bugs.

Keywords

Init Method Scene Change Progress Timer Target Scene Player Object 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Steffen Itterheim and Andreas Löw 2012

Authors and Affiliations

  • Steffen Itterheim
  • Andreas Löw

There are no affiliations available

Personalised recommendations