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 3. Moving Sprites Around the Screen – An Endless Runner

A while ago, endless runners started with a game called Helicopter where you had to drive a helicopter through an endless cave, just pressing a button to give it thrust.

Then, games became more complex until mobile gaming started to spread. Endless runners started gaining a new popularity due to their simple one tap control. The player is just required to touch anywhere when needed to control a helicopter.

In this chapter, you are going to build an endless runner that features a spaceship flying through a city while avoiding dangerous asteroids.

In the making of this game, you will learn, among other things, how to:

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

Moreover, although this is supposed to be a cross-platform game, you will also learn about mouse-only controls...

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