View Single Post
  #8  
Old May 16th, 2018, 07:21 AM
Mobhack's Avatar

Mobhack Mobhack is offline
National Security Advisor
 
Join Date: Mar 2005
Location: Dundee
Posts: 5,929
Thanks: 440
Thanked 1,853 Times in 1,217 Posts
Mobhack is on a distinguished road
Default Re: Experimental winSPWW2 EXE--May 15, 2018

Quote:
Originally Posted by DRG View Post
The correct sequence for describing zoom levels as we do in code

Z0.. that is the furthest out that shows the most map area
Z1
Z2
Z3
Z4 _ that is the 1:1 default
Z5 _ the extra level in we added in 2005
Z6 _ 200% of Z4 NEW
Z7 _ 300% of Z4 NEW

Remind us again in the fall about the campaign tracker....we don't code in summer. All of this was a spin off of a " I wonder if......." afternoon of coding Andy did that we wanted in as many hands as possible to playtest as it will be the standard for both game next patch if all testing is successful
Yep - I had noticed that the 3rd party graphics library we use for SHP graphics had another rendering function that allows you to resize a sprite when you splat it.

The routine the original code uses does not have the ability to scale a sprite so it meant we had to have pre-sized sprites, which then means that you needed a duplicate set of the entire graphics SHPs re-sized for each terrain level. And since the game reads in each graphics sprite set to an array in RAM as it is required, that uses your RAM up as well as the hard disk storage.

Now only the default 100% size sprite sets are read into RAM, reducing memory usage.

Since that rendering routine also allows sprite rotation, my next hacking at the game will be for vertically laid out terrain hexes, so you can have the normal "wargames table" game view where you are on the bottom of the map looking across from behind your troops at the enemy player opposite. That may work or turn out to be a can of worms...
Reply With Quote
The Following 2 Users Say Thank You to Mobhack For This Useful Post: