зеркало из
1
0
Форкнуть 0
cocos-sharp-samples/SneakyJoystick
netonjm c4301bc353 Fixed Program class and Delegates 2014-07-29 11:50:36 +02:00
..
example Fixed Program class and Delegates 2014-07-29 11:50:36 +02:00
screenshots Add screenshot 2014-06-18 16:22:42 +02:00
src/SneakyJoystick Fixing up the SneakyJoystick example for Mac: 2014-07-29 16:46:31 +10:00
README.md Update README.md 2014-06-18 16:25:51 +02:00

README.md

SneakyJoystick: Famous Joycontrol on screen

Ported to CocosSharp by José Medrano.

The src directory contains the ported code of SneakyJoystick to C# to be used within CocosSharp

  • Uses CustomEvents dispatched by the EventDispatcher of CocosSharp to : - Register Button Press and Release - Joystick control start and end movement

The example directory contains examples for various platforms using the SneakyJoystick Control Panel

  • Shows sample code of loading a SpriteSheet - Monkey and Bear assets are provided.
  • Creating an Animation from the loaded SpriteSheet.
  • Attaching the loaded animation to a Sprite and associating with the JoyStick Control.
  • Listening for the Custom Events dispatched by the SneakyJoystick control.
  • Playing a sound when a button control is pressed.
  • Moving the avitar loaded around the screen.
  • Animating the avitar while moving.

SneakyMonkey