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
© Hemanth Kumar 2016