dsb_lores_scaling

This forum is for the Lua scriptable clone of DM/CSB called Dungeon Strikes Back by Sophia. Use DSB to build your own highly customised games.

Moderator: Sophia

Forum rules
Please read the Forum rules and policies before posting.
Post Reply
User avatar
Sophia
Concise and Honest
Posts: 4240
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

dsb_lores_scaling

Post 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.
User avatar
Gambit37
Should eat more pies
Posts: 13715
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: dsb_lores_scaling

Post by Gambit37 »

Wowsers, that's amazing, thank you! Does this apply to the entire screen, or just the dungeon view?
User avatar
Sophia
Concise and Honest
Posts: 4240
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Re: dsb_lores_scaling

Post 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.
Post Reply