Hi Guys,
I created a joystick API and it can be downloaded here:
https://github.com/zaldzbugz/zJoystick
Features:
1.) Joystick presented in CCSprite (rest and active state)
2.) Fadein and FadeOut animation of joystick
3.) Added parameter for an object to be controlled.
4.) Optional delegate methods:
-(void)joystickControlBegan;
-(void)joystickControlMoved;
-(void)joystickControlEnded;
Check the repository on how to use it.
Next update:
1.) Make joystick width dynamic: Curently hardcoded as
#define kJoystickRadius 50.0f
So, best use Joystick container of dimension 130 × 130 (like in the provided sample image in the repository)
Hope you like it Guys! :)
Regards,
ZaldzBugz