LevelSVG is using a modified version of cocos2d‘s Joystick implementation.
The main differences are:
- It supports a Jump button
- It renders the Joystick (pad and button)
This implementation is not yet committed in the cocos2d repository since it has some hardcoded values, and is focused on games that uses stick + button. The cococs2d’s version is focused on dual stick games.
In case you are interested in it, you can download it from here: joystick-20100122.tar
Hiya, thanks for the class!
thanks!
I’m trying to implement this class to control a ccSprite on the screen.
While I was able to initialize the joystick and it is showing and turning purple on press,
I couldn’t figure out how to monitor its velocity.
I’m using the ccTouchMoved function, but it doesn’t really seem to work (I’m NSLogging it for starters).
Would it be possible to see a simple implementation of this class?