Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Learning iPhone Game Development with Cocos2D 3.0
  • Table Of Contents Toc
Learning iPhone Game Development with Cocos2D 3.0

Learning iPhone Game Development with Cocos2D 3.0

By : Muzykov
4.7 (9)
close
close
Learning iPhone Game Development with Cocos2D 3.0

Learning iPhone Game Development with Cocos2D 3.0

4.7 (9)
By: Muzykov

Overview of this book

This book is an easy-to-follow, step-by-step beginner's guide covering the full process of creating a game. It is packed with examples and illustrations, with comprehensive coverage of each topic. If you want to learn how to make games using the Cocos2D framework, this book is for you. If you would like to build a good foundation for a career in game development as an independent game developer or at a game studio, or if you just want to make games as a hobby, then you'll love this book. You should have some basic programming experience with Objective-C and Xcode. To run the code in this book, you will also need an Intel-based Macintosh running OS X Mountain Lion (or later).
Table of Contents (14 chapters)
close
close
3
3. Cocos2D – Under the Hood
13
Index

Chapter 5. Starting the Action

In this chapter, we're going to add some action in the game and at the end of the chapter, we will be able to finally play the game. We will make our hunter aim for the bird using a finger and gyroscope, shoot the arrow from the bow, and make the arrow fly and hit the bird. Then we'll add more birds to the game as well as the winning and losing conditions.

In this chapter, we will learn the following topics:

  • Detecting when the player touches the screen, moves, and lifts the finger
  • Rotating the hunter's torso to aim at the desired point
  • Detecting collisions between two sprites using bounding boxes
  • Using states to control objects and the game life cycle
  • Detecting winning and losing
  • Using device orientation to control the game
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Learning iPhone Game Development with Cocos2D 3.0
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon