austinhallock / html5-virtual-game-controller Goto Github PK
View Code? Open in Web Editor NEWAn easy-to-implement, customizable virtual game controller for HTML5 games
License: MIT License
An easy-to-implement, customizable virtual game controller for HTML5 games
License: MIT License
Hello!
I found your virtual game controller and I try to put in, in my game but... I can't even use it because I dun understand how to use the joystick.
I just wanna know where I can have joystick position, etc,
Thanks
Please make user's callback be fired with event argument, that we can do more things.
It would be nice if the system had a behavior so that when the press of the joystick ends, the joystick snaps back to neutral.
I'm happy to code it with some pointers on how to best approach setting the properties of the joystick position.
I was trying out the second example you showed in the README on my ipad but the dpad is not even a dpad, it is just a black dot. Also the buttons are not responsive to touch. Please tell me how to fix this!
I was trying this library in a game I've created but I noticed virtual game controller started sending touch events slowly after a fast input on any side.
how can the game controller be removed at the end off a game state using phaser
Hello!
Apparently the NPM distribution of this library doesn't quite match what's in the git repo.
I NPM'd and was having a ton of bugs. Turns out that
var GameController = exports.GameController = {
was actually just
exports.GameController = {
in the code I pulled from NPM. There may be other differences, but that was the breaking change.
Not sure if you're still maintaining this, but you may want to check the NPM version.
Nice work! Thanks!
Hi,
I am using the gameController for a new project. It runs fine in the browser, but causes the following error when running ‘npm test’:
INFO [Chrome 40.0.2214 (Mac OS X 10.10.0)]: Connected on socket yxapCTVGyRn7TJwqqawn
Chrome 40.0.2214 (Mac OS X 10.10.0) ERROR
Uncaught TypeError: Cannot set property 'GameController' of undefined
at /Users/tim/angular/games/mitch/app/components/gamecontroller.js:71
Chrome 40.0.2214 (Mac OS X 10.10.0) ERROR
Uncaught TypeError: Cannot set property 'GameController' of undefined
at /Users/tim/angular/games/mitch/app/components/gamecontroller.min.js:1
I am using the standard Angular Seed as a starting point for the app. Any help would be great, as it would be nice to get the unit test running again.
I was interested in trying out your mobile controller, but on mobile, it says "press space to begin game" and there doesn't seem to be any way to do so.
When you rotate your device from potrait to landscape and back the layout gets messed up.
Hi,
When I render a joystick on the page and start moving it around, the canvas is not clearing, giving me a "Windows 98" effect... is there a reason or a fix for this?
Thanks,
--d
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.