Search found 42 matches

by Eddy8555
Tue Apr 30, 2013 12:12 pm
Forum: R.U.B.E discussion
Topic: Scaling images / sprites to the body scale
Replies: 1
Views: 5844

Scaling images / sprites to the body scale

I'm using RUBE to draw a polygon around an image, and exporting it to my program. There I create a CCSprite and work with it in Android. So far so good. Now, I need to have a larger car in my program. So I go to RUBE, drop the car image onto the scene, draw the body polygon, and then scale it to my ...
by Eddy8555
Tue Apr 30, 2013 6:09 am
Forum: R.U.B.E discussion
Topic: Output to Java or ObjC / C++
Replies: 16
Views: 56981

Re: Output to Java or ObjC / C++

The approach of getting the bodies (and other box2d objects) from the JSON -- or I guess from the world.getBodyList is great. I could write an init method to make sure the measurement units fit the screen, and implement all my other game logic. But for the Jb2dJson to work for Android it would proba...
by Eddy8555
Mon Apr 29, 2013 4:35 pm
Forum: Box2D tutorial discussion
Topic: Which PTM_RATIO?
Replies: 5
Views: 15329

Re: Which PTM_RATIO?

I think I get it. I looked at the tutorial for translating, rotating and scaling, then moved my bodies from one scene to the other and saw that the scale was entirely different. So of course they won't work together in my one Android screen. I'll try it again tomorrow with one scene, and one scale f...
by Eddy8555
Mon Apr 29, 2013 2:35 pm
Forum: R.U.B.E discussion
Topic: Output to Java or ObjC / C++
Replies: 16
Views: 56981

Re: Output to Java or ObjC / C++

I set up the Jb2dJson loader and run it successfully over the sample scenes. But still, to use it in Android I'd probably need to customize it, and in any case I'd have to have the source code to add game logic. For example our game is planned to be multiplayer, and so I'll need to collect data on t...
by Eddy8555
Mon Apr 29, 2013 1:17 pm
Forum: R.U.B.E discussion
Topic: Output to Java or ObjC / C++
Replies: 16
Views: 56981

Re: Output to Java or ObjC / C++

And actually the main reason is probably that I'd like to write game logic that can't be done with RUBE, so I have to have the source code to do it.
by Eddy8555
Mon Apr 29, 2013 1:10 pm
Forum: Box2D tutorial discussion
Topic: Which PTM_RATIO?
Replies: 5
Views: 15329

Re: Which PTM_RATIO?

OK so I created a body around an image in one scene, exported it, translated to java and run it in my Android application -- and it works fine. Now I created another body, in another scene, did the same process, added it to my CCLayer -- the same layer that has the previous image -- but the new body...
by Eddy8555
Sun Apr 28, 2013 2:42 pm
Forum: Box2D tutorial discussion
Topic: Which PTM_RATIO?
Replies: 5
Views: 15329

Which PTM_RATIO?

I'm doing my first steps with Rube, and with Box2D in general, and I'm not sure I understand the PTM_RATIO issue. I understand it converts pixel units to meter units. But when looking at the tutorials I found one that has a PTM_RATIO of 32, and another that has a value of 200. Why the different valu...
by Eddy8555
Sun Apr 28, 2013 2:16 pm
Forum: R.U.B.E discussion
Topic: Output to Java or ObjC / C++
Replies: 16
Views: 56981

Re: Output to Java or ObjC / C++

Hi Tim, Well, I stopped with the loader for two reasons. One, because I'm learning the framework and it's probably better for me to write code, over getting it written for me. Just for this initial, learning stage. The immediate reason is that I'm not using libgdx. I looked at it, but wasn't sure wh...
by Eddy8555
Sun Apr 28, 2013 9:57 am
Forum: R.U.B.E discussion
Topic: Output to Java or ObjC / C++
Replies: 16
Views: 56981

Re: Output to Java or ObjC / C++

Thanks, Tim and iforce. I think I'm going to take it slowly, since I'm learning the framework and at this point I don't mind doing a bit of dumb work. So I bought Rube, created an image, run around it with the vertices mode, exported the code to C++, and translated to Java (my project is for Android...
by Eddy8555
Sat Apr 27, 2013 9:39 pm
Forum: R.U.B.E discussion
Topic: Output to Java or ObjC / C++
Replies: 16
Views: 56981

Re: Output to Java or ObjC / C++

Yes, I get that, iforce2d, thanks. I was going over it in my head and realizing it would create a mess to export to Java (or any other source code) unless I was able to develop the entire game with Rube, and export a final version. Which probably isn't possible. tescott, what is the loader doing, ex...