I tried to test a game which it uses accelerometer and physics but it's not working with C2, however CocoonJS 1.2 already supports accelerometer.
There a demo about physics in cocoonJS launcher and it worked like a charm.
I had no idea how does it work.
Compare it bewteen HTML5 Browser and CocoonJS
Yes we noted it doesn't work in ludei's forum. It's up to them to fix it. 8)
PixelPalette did you test Box2D demo by ludei? it would be nice if we port it using C2
I can't reproduce it not working at all - if I print the acceleration values in CocoonJS it shows data, but the values seem to be in different units. CocoonJS seems to have much smaller acceleration values, which makes it seem broken if you compare them. I'll tell Ludei about this; closing this report as it's not a C2 issue.
Ashley Are you sure isn't a C2 issue? how is possible there a Box2D demo which it worked with accelerometer and physics in cocoonJS launcher? it's completely HTML5.
Joannesalfa - probably because Ludei adapted the demo to work with the much smaller values returned by CocoonJS.
Ashley thanks for quick reply, i think i should report to Ludei.
Develop games in your browser. Powerful, performant & highly capable.
Anybody had success with Accelerometer in CocoonJS yet?
Have Ludei fixed this yet?