#4689: abolish automatic resizing of minimap
-------------------------------------------------+-------------------------
 Reporter:  Forgon                               |             Owner:
     Type:  patch (an actual patch, not a        |            Status:  new
  request for one)                               |         Milestone:
 Priority:  normal                               |  unspecified
Component:  other                                |           Version:
 Keywords:                                       |  git/master
 Blocking:                                       |        Blocked By:
                                                 |  Operating System:  All
                                                 |  /Non-Specific
-------------------------------------------------+-------------------------
 This patch series abolishes automatic resizing of the minimap, which is
 desirable for a configuration option to change the default radar size, to
 be introduced with #4629.

 Radar size ranges from 8 to 64 with a default value is 16 (see
 './src/radar.h').
 A routine that assumed a value < 4 has been removed.

 Maps with width < 150 tiles like Sk-Rush no longer start with a resized
 radar of 14 (if the screen is <= 640 pixels wide) or 32, which will likely
 be noticed by users (see attached image [raw-
 attachment:minimap_size_comparison.png]).
 Almost every single one of the popular 8-player NTW maps is 140 tiles wide
 and will thus start with a smaller radar size. Among 680 different maps
 whose size was measured with a bash script (view [raw-
 attachment:list_map_sizes] for the script and [raw-
 attachment:map_sizes.csv] for the results), 36% were affected overall.

 When rotateRadar was enabled, all minimaps were rescaled as though their
 larger side (either width or height) was 128 tiles long.
 A map 143x159 tiles large (the average dimensions of 680 maps examined)
 would thus appear with a sidelength reduced by about ~ 20%. Note that maps
 cannot be larger than 256 tiles or smaller than 2 tiles on either side,
 although tiny maps are rare: the smallest popular multiplayer map,
 HugeassRebuild, is 21x21 tiles in size and thus appeared with a sidelength
 about 6-times larger with rotating radar than fixed radar (see attached
 image [raw-attachment:radar_rotation_enlarging_minimap.png]).

 Rotating radar also shifted the center of the minimap so that it fit into
 a square of its largest sidelength (see attached image [raw-
 attachment:radar_rotation_centering_minimap.png]).
 This cost valuable screen space: Out of 680 maps, 45% were higher than
 wide and would thus move to the left, 14% were wider than high and shifted
 upwards, while 40% had equal dimensions and thereby unaffected.

 Lastly, the radar size in tutorials has also increased since a routine
 shrinking it was ignored when converting them to JavaScript (ticket #4641)
 and removed from the game altogether with
 76ac44c84b7f89a860c743202bb002586d137e63.

--
Ticket URL: <http://developer.wz2100.net/ticket/4689>
Warzone 2100 Trac <http://developer.wz2100.net/>
The Warzone 2100 Project
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Warzone2100-project mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/warzone2100-project

Reply via email to