Rapid Game Development Using Cocos2d-JS pp 41-48 | Cite as
Handling Inputs and Events
Chapter
First Online:
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