Cocos2d-x Game Development Essentials

Create iOS and Android games from scratch using Cocos2d-x.
Preview in Mapt

Cocos2d-x Game Development Essentials

Frahaan Hussain, Arutosh Gurung, Gareth Jones

Create iOS and Android games from scratch using Cocos2d-x.

Quick links: > What will you learn?> Table of content

Mapt Subscription
FREE
$29.99/m after trial
eBook
$9.80
RRP $13.99
Save 29%
Print + eBook
$22.99
RRP $22.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$9.80
$22.99
$29.99 p/m after trial
RRP $13.99
RRP $22.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Cocos2d-x Game Development Essentials Book Cover
Cocos2d-x Game Development Essentials
$ 13.99
$ 9.80
Cocos2d-x by Example: Beginner's Guide - Second Edition Book Cover
Cocos2d-x by Example: Beginner's Guide - Second Edition
$ 35.99
$ 25.20
Buy 2 for $27.30
Save $22.68
Add to Cart

Book Details

ISBN 139781783987863
Paperback136 pages

Book Description

Cocos2d-x is the C++ port of the most popular open source 2D framework in the world. Cocos2d-x is an amazing open source game engine that allows developers to exploit their existing C++, Lua, and JavaScript knowledge for cross-platform deployment into iOS, Android, Windows Phone, BlackBerry, Tizen, and HTML5, saving you time, effort, and cost.

You will learn the essentials of Cocos2d-x through examples, by creating a game from scratch. The book starts with adding scenes and menus to the game. Furthermore, you can learn more about the varied features such as scene transitions, game sprites, moving the spaceship, and adding audio to make your game livelier. By the end of the book, you will be able to solve problems that may arise during the entire game development phase.

Table of Contents

Chapter 1: Setting Up
What is Cocos2d-x?
Setting up the project
Housekeeping
Implementing multiresolution support
Summary
Chapter 2: Adding Scenes
Creating new scenes
Manipulating scenes
Summary
Chapter 3: Adding Game Menus
Setting up the menu
Coding the menus in the Main Menu scene
Coding the menus in the Game scene
Coding the menus in the Pause scene
Coding the menus in the Game Over scene
Summary
Chapter 4: Scene Transitions
The fade transition
Additional transitions
Summary
Chapter 5: The Game Sprites
Adding the Main Menu sprites
Adding the Game Over sprites
Adding the Pause sprites
Adding the Game sprites
Summary
Chapter 6: Implementing Actions
Actions
Animation
Summary
Chapter 7: Moving the Space Pod Using Touch
The general process for setting up touches
Single-touch events
Multi-touch events
Summary
Chapter 8: Collision Detection
Collision detection
Player collision detection
Summary
Chapter 9: Adding Audio to the Game
Loading and playing sound effects
Adding sound effects
Loading and playing background music
Summary
Chapter 10: Implementing Accelerometer Support
Setting up the accelerometer
Summary
Chapter 11: Problem Solving and What's Next
Problem solving
What's next?

What You Will Learn

  • Set up Cocos2d-x to create games
  • Create a new project in Cocos2d-x
  • Learn to run a project on iOS and Android platforms
  • Implement the core game structure using Cocos2d-x tools and techniques
  • Add gameplay using general coding practices and built-in functions within Cocos2d-x
  • Manipulate the game items to provide gameplay using Cocos2d-x actions
  • Overcome common problems faced during the game development phase with Cocos2d-x

Authors

Table of Contents

Chapter 1: Setting Up
What is Cocos2d-x?
Setting up the project
Housekeeping
Implementing multiresolution support
Summary
Chapter 2: Adding Scenes
Creating new scenes
Manipulating scenes
Summary
Chapter 3: Adding Game Menus
Setting up the menu
Coding the menus in the Main Menu scene
Coding the menus in the Game scene
Coding the menus in the Pause scene
Coding the menus in the Game Over scene
Summary
Chapter 4: Scene Transitions
The fade transition
Additional transitions
Summary
Chapter 5: The Game Sprites
Adding the Main Menu sprites
Adding the Game Over sprites
Adding the Pause sprites
Adding the Game sprites
Summary
Chapter 6: Implementing Actions
Actions
Animation
Summary
Chapter 7: Moving the Space Pod Using Touch
The general process for setting up touches
Single-touch events
Multi-touch events
Summary
Chapter 8: Collision Detection
Collision detection
Player collision detection
Summary
Chapter 9: Adding Audio to the Game
Loading and playing sound effects
Adding sound effects
Loading and playing background music
Summary
Chapter 10: Implementing Accelerometer Support
Setting up the accelerometer
Summary
Chapter 11: Problem Solving and What's Next
Problem solving
What's next?

Book Details

ISBN 139781783987863
Paperback136 pages
Read More

Read More Reviews

Recommended for You

Cocos2d-x by Example: Beginner's Guide - Second Edition Book Cover
Cocos2d-x by Example: Beginner's Guide - Second Edition
$ 35.99
$ 25.20
Cocos2d Cross-Platform Game Development Cookbook - Second Edition Book Cover
Cocos2d Cross-Platform Game Development Cookbook - Second Edition
$ 39.99
$ 28.00
Learning Cocos2d-x Game Development Book Cover
Learning Cocos2d-x Game Development
$ 26.99
$ 18.90
Mastering Cocos2d Game Development Book Cover
Mastering Cocos2d Game Development
$ 35.99
$ 25.20
Building Android Games with Cocos2d-x Book Cover
Building Android Games with Cocos2d-x
$ 19.99
$ 14.00
Building a 3D Game with LibGDX Book Cover
Building a 3D Game with LibGDX
$ 23.99
$ 16.80