Best Resolution for 2D games

Started by
9 comments, last by PunCrathod 12 years, 3 months ago
I am planning to develop a 2D game for PC, I am little bit confused about game resolution.

What is the best resolution for 2D games?
Advertisement
Best resolution?

Whatever the native resolution is of the users screen. :)

I am planning to develop a 2D game for PC, I am little bit confused about game resolution.

What is the best resolution for 2D games?


Take a look at my Old Blog (in my sig). Grab my latest version of code, and check out the Utilities.ccp/h files. I allow the user to enter the resolution he wants to use in my game. You might want to consider doing that as well.

My Gamedev Journal: 2D Game Making, the Easy Way

---(Old Blog, still has good info): 2dGameMaking
-----
"No one ever posts on that message board; it's too crowded." - Yoga Berra (sorta)

I would argue that if you support multiple resolutions, unless you have a very good dithering system of high res textures, or textures per sets of resolutions, the game appearance will suffer.
I'm pretty noobish at this game developing stuff as well, and had a related question. What exactly happens when a user "switches resolutions" for a game? Does the game switch the screen resolution as well? I'm just kind of confused by the whole thing really.
It depends. Some games will specify a specific screen resolution, some will save the users preffered resolution for the particular game, and some will simply use the native (desktop) resolution.
I just use a common resolution for my game, like 1024x768.
This is the amount of pixels your screen uses. The game will be best played on this resolution.

If you change the resolution it simply gets streched out, unless you use different images for each resolution.
This is fine for a 4:3 ratio screen but if you if you do this on a 16:9 screen, guess what? It gets stretched out.

Thats why I go for the users native resoultion. and position things relative (not absolute). From my understanding, this is what the AAA game dev's do.

This is fine for a 4:3 ratio screen but if you if you do this on a 16:9 screen, guess what? It gets stretched out.

Thats why I go for the users native resoultion. and position things relative (not absolute). From my understanding, this is what the AAA game dev's do.

But the thing about 2D games is that changing the screen resolution can significantly change the gameplay or feel of the game because of how they usually use planar coordinates.
Diablo 2 widescreen "hack" is a good example of this, the oringinal game has quite a narrow view to limit your visibility for monsters, but using the widescreen hack you gain a huge view of the surrounding area and get quite a different experience of the game.
In 3D games this effect isn't felt that much because most of the action takes place along the z-axis ("dow/ninto" the monitor)
By general rule, you should allow the user to specify the resolution and then scale the graphics accordingly. This is pretty much non-trivial when using a GPU, since you're already working with a virtual resolution for starters (to map game coordinates to Direct3D/OpenGL/whatever coordinates), though beware of undesirable artifacts when scaling textures.

The biggest problem here is the resolution ratio though, since it could be anything, really. For the HUD it's easy to just set the coordinates relative to the borders (or center) of the screen. For 3D games, you can simply change the FOV. For 2D games it becomes an issue though because usually the camera has limits within which it can scroll, and if the ratio is wide or tall enough, it's perfectly possible that the viewport will be too big to fit inside the limits. You need to come with a workaround for this (somehow).

Also, don't assume only a few ratios exist. 4:3, 16:9 and 16:10 are the most common, but there are some other common resolutions that have different ratios (e.g. 1280×1024 is 5:4).
Don't pay much attention to "the hedgehog" in my nick, it's just because "Sik" was already taken =/ By the way, Sik is pronounced like seek, not like sick.

This topic is closed to new replies.

Advertisement