O'Reilly logo

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

Cocos2d-x Solutions

Video Description

Efficiently administer and maintain your games with Cocos2d-x

About This Video

  • Build exciting games, apps, and other cross-platform GUI based interactive programs with Cocos2d-x

  • Explore the nitty-gritty of the latest Cocos2d-x on the block

  • A step-by-step guide that shows you the functionalities of Cocos2d-x followed by an explanation of how they work

  • In Detail

    Cocos2d-x is a suite of open source, cross-platform game-development tools used by thousands of developers all over the world. Cocos2d-x is a game framework written in C++, with a thin platform-dependent layer. Completely written in C++, the core engine has the smallest footprint and the fastest speed of any other game engine, and is optimized to be run on all kinds of devices.

    You will begin with the initial setup and installation of Cocos2d before moving on to the fundamentals needed to create a new project. You will then explore and create the sprites, animations, and actions that you will include in the game. Next, you will look at strings and create labels, including a label with True Type Font (TTF) font support.

    Later, you will learn about layer and scene creation and transition. Then you will create the GUI parts essential for a game, such as buttons and switches. After that, you will breathe life into the game with background music and sound effects using the all new Cocos2d-x audio engine. You will then discover how to manage resource files and implement processes that depend on the operating system.

    Finally, you will learn about tools that will help you make games more robust and stable, and get to know best practices to improve the game you have developed.

    Table of Contents

    1. Chapter 1 : Getting Started with Cocos2d-x
      1. Installing Cocos2d-x 00:09:29
      2. Using the cocos Command 00:03:29
      3. Building the Project 00:07:27
      4. Preparing Our Original Game 00:02:59
    2. Chapter 2 : Creating Sprites
      1. Introduction to Sprites 00:03:11
      2. Manipulating Sprites 00:05:47
      3. Bringing Our Game to Life! 00:09:47
      4. Controlling Actions 00:05:57
      5. Mastering Actions 00:04:52
      6. Optimizing Our Game 00:05:03
      7. Enhancing Our Game 00:03:42
      8. Drawing a Shape 00:05:16
    3. Chapter 3 : Working with Labels
      1. Creating System Font Labels 00:05:00
      2. Creating True Type Font Labels 00:02:31
      3. Creating Bitmap Font Labels 00:03:19
      4. Creating Rich Text 00:03:44
    4. Chapter 4 : Building Scenes and Layers
      1. Creating Scenes 00:04:06
      2. Transitioning Between Scenes 00:02:24
      3. Transitioning Scenes with Effects 00:02:39
      4. Creating Original Transitions 00:05:07
      5. Creating Layers 00:03:39
    5. Chapter 5 : Creating GUIs
      1. Creating Menus 00:04:34
      2. Creating Buttons and Checkboxes 00:05:53
      3. Creating Loading Bars and Sliders 00:04:28
      4. Creating TextFields 00:01:55
      5. Creating Scroll Views, Page Views, and List Views 00:07:19
    6. Chapter 6 : Playing Sounds
      1. Playing Background Music 00:03:47
      2. Playing Sound Effects 00:02:44
      3. Controlling the Volume, Pitch, and Balance 00:03:55
      4. Pausing and Resuming Background Music 00:02:35
      5. Pausing and Resuming Sound Effects 00:02:10
      6. Playing Background Music and Sound Effect by Using AudioEngine 00:03:02
      7. Playing Movies 00:03:14
    7. Chapter 7 : Working with Resource Files
      1. Selecting and Managing Resource Files 00:08:52
      2. Using SQLite 00:05:04
      3. Using .xml, .plist, and .json 00:09:08
    8. Chapter 8 : Controlling Physics
      1. Using the Physics Engine 00:04:22
      2. Detecting Collisions 00:02:54
    9. Chapter 9 : Improving Games with Extra Features
      1. Using TexturePacker 00:04:53
      2. Using Titled Map Editor 00:07:21
      3. Getting Property of the Object in the Tiled Map 00:04:27
      4. Using PhysicsEditor 00:05:24
      5. Using Glyph Designer 00:04:26
    10. Chapter 10 : Taking Advantages
      1. Using Encrypted Sprite Sheets 00:04:15
      2. Using Encrypted Zip Files 00:02:53
      3. Using Encrypted SQLite Files 00:05:58
      4. Creating an Observer Pattern 00:04:21
      5. Networking with HTTP 00:04:09