Handling Inputs and Events

  • Hemanth Kumar
  • Abdul Rahman
Chapter

Abstract

Handling user input is an essential part of any game. In Cocos2d-js, user input, such as by touch, mouse, or keyboard, is available in the form of events. There are three major parts involved in the event mechanism (see Figure 4-1).

Keywords

Event Trigger Event Manager Custom Event Event Handling Code Snippet 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Hemanth Kumar 2016

Authors and Affiliations

  • Hemanth Kumar
    • 1
  • Abdul Rahman
    • 1
  1. 1.ChennaiIndia

Personalised recommendations