arescentral / antares

A tactical space combat game
http://arescentral.org/antares/
GNU Lesser General Public License v3.0
99 stars 18 forks source link

Interpret resolution in terms of screen fraction, not pixels #96

Open sfiera opened 9 years ago

sfiera commented 9 years ago

Original issue 93 created by sfiera on 2011-10-04T05:18:42.000Z:

Ares never supported resolutions higher than 1024x768, but monitors these days tend to be larger (e.g., 13" laptops are 1280x800, and they're small). The way things are set up now, it's possible to view a larger area of space by playing at a higher resolution, and that's potentially not fair.

I believe that we should pick a resolution (maybe 800x600) to be the canonical resolution, and adjust the zoom level at other resolutions to compensate. If 800x600 is canonical, and the user plays on 1280x800, then we should adjust the zoom level by 4/3 (i.e., by height ratio) so that 1:1 zoom on the latter renders as 1.33:1 zoom. In this way, a ship will take the same fraction of the height of the screen no matter what resolution the player uses.

sfiera commented 9 years ago

Comment #1 originally posted by sfiera on 2011-10-04T15:03:06.000Z:

Side note: the reason that I picked 800x600 was because it's more likely to yield nice multiples. The two monitor sizes I had in mind were 1280x800 and 1920x1200 (the 16:10 equivalents of the 16:9 720p and 1080p). Adopting 800x600 turns 1:1 into 4:3 and 2:1. Adopting 1024x768 turns 1:1 into 25:24 and 25:16.

sfiera commented 9 years ago

Comment #2 originally posted by sfiera on 2011-10-04T15:03:40.000Z:

Side note: the reason that I picked 800x600 was because it's more likely to yield nice multiples. The two monitor sizes I had in mind were 1280x800 and 1920x1200 (the 16:10 equivalents of the 16:9 720p and 1080p). Adopting 800x600 turns 1:1 into 4:3 and 2:1. Adopting 1024x768 turns 1:1 into 25:24 and 25:16.

sfiera commented 9 years ago

Comment #3 originally posted by sfiera on 2011-11-03T21:17:37.000Z:

<empty>