View Single Post
  #9  
Old May 16th, 2018, 07:42 AM
RightDeve's Avatar

RightDeve RightDeve is offline
Second Lieutenant
 
Join Date: May 2008
Location: Yogyakarta, Nusantara
Posts: 468
Thanks: 99
Thanked 104 Times in 65 Posts
RightDeve is on a distinguished road
Default Re: Experimental winSPWW2 EXE--May 15, 2018

Quote:
Originally Posted by Mobhack View Post

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...
Are we being teased of a 3D (or pseudo 3D) Steel Panthers??
Reply With Quote