[r111] Accelerometer + Physics in CocoonJS

Bugs will be moved here once resolved.

Post » Sat Dec 08, 2012 9:48 am

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.Joannesalfa2012-12-08 10:21:17
B
96
S
25
G
20
Posts: 3,055
Reputation: 22,644

Post » Sat Dec 08, 2012 9:52 am

Compare it bewteen HTML5 Browser and CocoonJS

http://dl.dropbox.com/u/76227787/prototype.capx
B
96
S
25
G
20
Posts: 3,055
Reputation: 22,644

Post » Sun Dec 09, 2012 4:32 pm

Yes we noted it doesn't work in ludei's forum. It's up to them to fix it. 8)
B
50
S
11
G
7
Posts: 274
Reputation: 8,146

Post » Mon Dec 10, 2012 1:27 am

@PixelPalette did you test Box2D demo by ludei? it would be nice if we port it using C2
B
96
S
25
G
20
Posts: 3,055
Reputation: 22,644

Post » Tue Dec 11, 2012 6:04 pm

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.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Tue Dec 11, 2012 10:24 pm

@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.
B
96
S
25
G
20
Posts: 3,055
Reputation: 22,644

Post » Tue Dec 11, 2012 10:25 pm

@Joannesalfa - probably because Ludei adapted the demo to work with the much smaller values returned by CocoonJS.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Tue Dec 11, 2012 10:32 pm

@Ashley thanks for quick reply, i think i should report to Ludei.
B
96
S
25
G
20
Posts: 3,055
Reputation: 22,644

Post » Mon Jun 17, 2013 11:21 am

Anybody had success with Accelerometer in CocoonJS yet?
Have Ludei fixed this yet?

B
5
Posts: 18
Reputation: 821


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 3 guests