Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Okay, my internal units are going to be meters, ranging between 0.1 and 10 meters for size.

First of all, my mind is all wrapped up in a knot trying to understand how to handle my game with multiple resolutions. I didn't hard code things, but I never tested it and just put it in the back of my mind.

My game is a sidescrolling game, and I think the best approach is to have a fixed viewspace that is x by y units. This way when someone has a different resolution, it'll just stretch out (god I hope it'll look decent though. even though it is a semi-pixelly sort of game).

Having a fixed viewspace means that in PvP, one can't get an edge over others. I guess.

So basically I've got OpenGL, GLM (for matrices) and SDL. I can set the window size in SDL, the viewport size (which would always be win size i imagine). Then I've got my matrices. I use an ortho and a view.

What on earth do I even set them to?

Like, people say "plan your game for 1 resolution and use that, then just switch scale/switch to others if it's different". What should I be setting the ortho matrix to?

I imagine the GUI's ortho matrix should just be set to the window size? I don't see a point in really scaling that at all, just results in headaches anyways.

But the objects in the world and stuff will be in meters..so, that confuses me.

share|improve this question
add comment

closed as unclear what you're asking by Trevor Powell, Anko, Byte56 Dec 26 '13 at 23:41

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.