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 Cocos2d-JS Game Development
  • Table Of Contents Toc
Learning Cocos2d-JS Game Development

Learning Cocos2d-JS Game Development

By : Emanuele Feronato
3.9 (11)
close
close
Learning Cocos2d-JS Game Development

Learning Cocos2d-JS Game Development

3.9 (11)
By: Emanuele Feronato

Overview of this book

If you are a Java developer who wants to learn about Java EE, this is the book for you. It's also ideal for developers who already have experience with the Java EE platform but would like to learn more about the new Java EE 7 features by analyzing fully functional sample applications using the new application server WildFly.
Table of Contents (11 chapters)
close
close
9
9. Creating Your Own Blockbuster Game – A Complete Match 3 Game
10
Index

Chapter 6. Controlling the Game with Virtual Pads

One of the most important things to consider when making a cross-platform game is the way the player will control the main character. Most of the devices your game will be running on won't have a keyboard or a mouse, and although more and more portable devices now support pads, your game must also be playable without pads.

In this chapter, I will show you three of the most popular ways to create virtual pads on any device. Among other things, you will learn how to:

  • Scroll big images to give an idea of an endless background
  • Schedule events
  • Control the frame rate
  • Check collision between sprites
  • Create a simple particle system
  • Move sprites manually or using actions

So, the first thing to do is take a look at how successful games allow players to interact with them using virtual pads.

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 Cocos2d-JS Game Development
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