Book Image

Cocos2d-x by Example: Beginner's Guide

By : Roger Engelbert
Book Image

Cocos2d-x by Example: Beginner's Guide

By: Roger Engelbert

Overview of this book

Table of Contents (19 chapters)
Cocos2d-x by Example Beginner's Guide Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

The game – Eskimo


Little Eskimo boy is late for supper. It is your mission, should you choose to accept it, to guide the little fella back to his igloo.

This is a Box2D game, and the controls are very simple. Tilt the device and the Eskimo will move. If you tap the screen, the Eskimo switches shape between a snow ball and a block of ice, each shape with its own physical characteristics and degrees of maneuverability. The ball has a higher friction, for instance, and the block of ice has none.

And the only way the Eskimo may reach his destination is by hitting the gravity switches spread out all over the screen.

Eskimo combines elements from an arcade game with elements of a puzzle game, as each level was planned with one perfect solution in mind as to how to take the little Eskimo home. Note, however, that multiple solutions are possible.

Download the 4198_09_FINAL_PROJECT.zip file and run the game when you have a chance. Once again, there is no need for extraneous typing as the logic used in...