The Dink Network

Reply to Re: WDE 2.0

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
November 19th 2024, 05:17 PM
goblins.gif
drone1400
Peasant He/Him Romania
C# nerd 
@SimonK Mhmmm.. a while back, I had this idea of a true DinkHD that would support sprites/tiles of "arbirtrary" resolution...

Basically, my idea was to have an additional parameter in the dink ini defining a sprite scaling factor, much like the windows DPI. At 100%, a sprite pixel would correspond to a game logical pixel. At 200%, 2 sprite pixels would correspond to a game logical pixel. *

Then for example, if you have a sprite that's 200x100 with its scale set to 200%, in a 640x480 game window it would be scaled down to 100x50. But in a 1280x960 window, all the 100% sprites would get scaled up accordingly, while the 200x100 sprite would maintain its full 200x100 resolution. Or if the game was running at 960 x 720, you'd have the normal sprites get scaled up 1.5x while the 200x100 sprite becomes 150x75. Etc.

* Or perhaps, it would be more intuitive to specify the exact "game pixel" size you want the sprite to have. Say you have the 200x100 sprite, but you define it as 50x25. Then at lower resolutions it gets scaled down, but at higher resolutions it should be more defined.