Search found 10 matches

by aholla
Wed Apr 10, 2013 9:56 pm
Forum: R.U.B.E discussion
Topic: Emscripten Box2D and Rube
Replies: 2
Views: 6379

Re: Emscripten Box2D and Rube

Hey thanks for the reply, I read this post which compares various methods of running box 2d and the emscripten version does appear very similar to the box2dweb version but it looks like there might be less garbage collection (smaller spikes). http://blog.j15r.com/blog/2011/12/15/Box2D_as_a_Measure_o...
by aholla
Wed Apr 10, 2013 10:02 am
Forum: R.U.B.E discussion
Topic: Emscripten Box2D and Rube
Replies: 2
Views: 6379

Emscripten Box2D and Rube

Hi iForce, I have just seen you have been contributing to the Emscripten version of box2d (https://github.com/kripken/box2d.js), I have see your tests: http://www.iforce2d.net/embox2d/testbed.html and wondered what you though of its performance over box2dweb. Obviously this would not be the only adv...
by aholla
Thu Mar 14, 2013 10:16 am
Forum: Bug reports
Topic: Saving file with joints.
Replies: 8
Views: 17856

Re: Saving file with joints.

Hey so it turns out it was my code... I was looping though all the bodies and added them to a loaded bodies array except I was excluding one of the bodies which I wanted to create later. This was then shifting all the body and joints around and messing things up. Thanks for taking the time to look i...
by aholla
Tue Mar 12, 2013 10:51 am
Forum: Bug reports
Topic: Saving file with joints.
Replies: 8
Views: 17856

Re: Saving file with joints.

haha, yeah, my json files are exported elsewhere so no confusion. It's hard to explain, I may have to make a video. I've just been trying to replicate the bug and it happened once but I could not figure out what it was. The problem seems to occur when copying bodies with joints from one file to anot...
by aholla
Mon Mar 11, 2013 10:13 am
Forum: Bug reports
Topic: Saving file with joints.
Replies: 8
Views: 17856

Re: Saving file with joints.

HI iforce, thanks for taking to time to check this out. Yeah, whenever I reopen and export a level, it end up breaking, some of my bodies no longer have the joints they should. I thought the differences in the export or the rube file might help show this but perhaps it' s my game code that is the pr...
by aholla
Sat Mar 02, 2013 7:10 pm
Forum: Bug reports
Topic: Saving file with joints.
Replies: 8
Views: 17856

Re: Saving file with joints.

Hey iforce, I have a file you can look at: https://dl.dropbox.com/u/698268/dev/rube/save_example.rube 1. If you open this file and export it as json, then close the file. Open again and export again under a different name, the two json files have slight changes. 2. If you open this file and save it ...
by aholla
Fri Mar 01, 2013 9:16 pm
Forum: Bug reports
Topic: Saving file with joints.
Replies: 8
Views: 17856

Re: Saving file with joints.

Hi Iforce, thanks for the reply. I wont be able to access the files untill monday but will post upload them then and post back. I am using the .rube files. They work fin inside rube, the simulation runs fine. But if I save them, the data changes and the joints break. Will post again on monday with t...
by aholla
Fri Mar 01, 2013 12:58 pm
Forum: Bug reports
Topic: Saving file with joints.
Replies: 8
Views: 17856

Saving file with joints.

Hi, I'm trying to save my levels but when I reload the levels and try exporting again, I get lots of errors related to the joints. If i open a file and without changing anything, click save as. When I compare the new file with the old file they have lots of changes. The simulation run correct but th...
by aholla
Mon Feb 25, 2013 10:14 pm
Forum: R.U.B.E discussion
Topic: javascript testbed.js
Replies: 17
Views: 137402

Re: javascript testbed.js

Hey, it seems to me that if I were to flip the canvas then I would have to flip my ui and other menu items too. Alternatively I could create several canvases for the different elements. I have the got my game working with the non-inverted canvas, I update my objects view and offset their position ag...
by aholla
Fri Feb 22, 2013 4:26 pm
Forum: R.U.B.E discussion
Topic: javascript testbed.js
Replies: 17
Views: 137402

Re: javascript testbed.js

Hey, I too have run into this problem. I am building a box2d game and flipping the context is not a suitable answer. I am going to have to rebuild all my bodies and hope this does not effect the joints too much. It would be great if RUBE could automate this process. FOr both FLash and JavaScript, th...