Jump to content

  • Log In with Google      Sign In   
  • Create Account


Relative or absolute coordinate system


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 Gavin Williams   Members   -  Reputation: 647

Like
0Likes
Like

Posted 04 April 2014 - 12:00 AM

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



Sponsor:

#2 Krypt0n   Crossbones+   -  Reputation: 2482

Like
1Likes
Like

Posted 05 April 2014 - 02:32 PM

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.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS