Giter Site home page Giter Site logo

html5-virtual-game-controller's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

html5-virtual-game-controller's Issues

How to use joystick data

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

Enhancement Request: JoyStick snap to neutral option

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.

dpad and touch are not working on ios

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!

remove

how can the game controller be removed at the end off a game state using phaser

NPM distribution not up to date

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!

Error during Karma Test

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.

Canvas not clearing

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.