tonymtz Posted July 21, 2015 Share Posted July 21, 2015 Hello! How many of yours have had the need to add a virtual joystick to your new phaser project? The options we have constrain us having the joystick static in one place in the screen. Most of the time this solution is not enough to give the best gaming experience. What do I mean? Not all the people have the same finger length, neither the same screen size. Users have a very big pool of different devices and configurations, driving us crazy dealing with all of them. That's why my team and I developed a custom solution, and now we want to share it with you: VJoy Plugin. The source code is available from https://github.com/InformalPenguins/phaser-vjoy-plugin What does this plugin do? The position is dynamic. Where you start to touch, the joystick will set its base. You should define the coordinates where the joystick will have effect. This let us having half of the screen ready for the joystick, and buttons in the other half. We are working on many projects using this Phaser, and implementing this plugin. We're going to continue improving this plugin at the time we find more needs in our games. So, please feel free to use it and/or make the modifications you want. You can help us reporting bugs or improvements too registering issues in github. We hope you like it. Cheers. Install it using bower:bower install phaser-vjoy-pluginor download directly from github:SOURCE: https://github.com/InformalPenguins/phaser-vjoy-plugin DEMO: (Note: it works with mobile devices only) http://informalpenguins.com/phaser-vjoy-plugin/ Link to comment Share on other sites More sharing options...
Recommended Posts