Handling Inputs and Events
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).
KeywordsEvent 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.
© Hemanth Kumar 2016