• Advertisement
Sign in to follow this  

Relative or absolute coordinate system

This topic is 1388 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi,

 

In a game I'm making for college, I'm using a relative PlayRegion (0,0 - 100,100). It's a sprite based game. I started using relative because the monitors at school are slightly smaller than my HD screen at home, and I figured i may as well support both. But it becomes a bit strange working with relative, because it always has to be rounded to real coordinates.

 

Now, considering that it's best to render sprites at their true resolution, my new thinking is that i should instead have profiles for supported resolutions and each profile load a different sprite set and set PlayRegion and Actor.Size's appropriate to each resolution.

 

Does that sound preferable ? I guess I'm asking if relative coordinates always tend to run into problems with sprite based games?

 

Thanks

Share this post


Link to post
Share on other sites
Advertisement

it depends whether you will change the gameplay if you let players see a bigger region when they play on a bigger screen.

if there is no drawback and gameplay stays the same, keep the proper pixel ratio, but if there are gameplay changes, then rather scale or make a letter box.

 

some games have various side menus to crop the playregion to always the same size.

 

another, yet a bit overpowered solution, is to have all art in way higher resolution (e.g. 4x4 higher) and render it with anisotropic filtering on the gpu to any resolution, it should end up quite detailed with not really noticeable scaling artifacts.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement