Page 1 of 1

dsb_lores_scaling

Posted: Tue Jan 11, 2022 12:07 am
by Sophia
DSB 0.80 will include dsb_lores_scaling, which takes a boolean parameter and, when enabled, tells DSB's scaling code to scale everything to 50% of the specified size and then scale it back up, so distant objects have a more authentic DM low resolution look.

Ideally it's something you'll set and forget in your own startup.lua like this:

Code: Select all

dsb_lores_scaling(true)
However you can also disable it as needed in case it does strange things to some of your other graphics.

Re: dsb_lores_scaling

Posted: Tue Jan 11, 2022 5:14 pm
by Gambit37
Wowsers, that's amazing, thank you! Does this apply to the entire screen, or just the dungeon view?

Re: dsb_lores_scaling

Posted: Tue Jan 11, 2022 10:16 pm
by Sophia
It modifies how DSB's image scaling code works so it applies to anything that gets scaled before it is drawn. This is most commonly objects in the dungeon view, but you can also scale bitmaps yourself via dsb_bitmap_blit. Bitmaps that are drawn at their normal size aren't affected at all.