O'Reilly logo

Cocos2D Game Development Essentials by Ben Trengrove

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating Flappy Square

Let's start creating what is sure to be the next big hit on the App Store: Flappy Square. Flappy Square is a Flappy Bird clone that uses squares instead of fancy graphics. Don't worry! you will add some proper assets in the next chapter.

You should currently have a screen that looks like the following screenshot; if you don't move your label so it is in the same position and change its text:

Creating Flappy Square
  1. This screen will be the menu scene of the app. Let's add a button so that players can actually start the game.
  2. Drag a button from the left-hand side of SpriteBuilder onto your scene.
  3. Position the button at the center of the scene and change ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required