Rube screen sizes

General discussion about the R.U.B.E editor
Post Reply
kyle.bong2@gmail.com
Posts: 41
Joined: Thu May 29, 2014 5:01 am

Rube screen sizes

Post by kyle.bong2@gmail.com »

Hi all,

Any recommendations on handling multiple screen resolutions? I have a game board created using rube and the size seem smaller/bigger in different devices. Do i create a rube file for each screen ? Any samples, better solutions or recommendations?

Thanks!
iforce2d
Site Admin
Posts: 861
Joined: Sat Dec 22, 2012 7:20 pm

Re: Rube screen sizes

Post by iforce2d »

Can you just scale the rendered size to fit the screen? It would mean that part of the screen would be cut off (usually the left and right sides) on screens that have smaller aspect ratio. This thread might be helpful: http://www.box2d.org/forum/viewtopic.ph ... 27&p=40591

Yes, you could make a different .rube file for each screen size, but that seems like a lot of work and there are a lot of different screen sizes to cover. If you're talking about gameplay screens, it's also a bad idea to go changing the physics world sizes from one device to another, because the game will play differently.

The only time I would bother using separate .rube files is when:
a) menu screens only (not gameplay screens!!)
b) not many screen variants to make it for (eg. iOS has relatively few)
c) difference in screen variants is enough to make it worthwhile (eg. iPhone5 is 16:9, iPad is 4:3)

As you can guess from my "eg." there, we did this for an iOS game before. But even then, we did not have separate .rube files for eg. iPad and iPad retina, because they are the same aspect ratio. So we only had three .rube files in total for each menu screen.
kyle.bong2@gmail.com
Posts: 41
Joined: Thu May 29, 2014 5:01 am

Re: Rube screen sizes

Post by kyle.bong2@gmail.com »

Thank you that's very helpful!
Post Reply