Change window dimensions?

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
meadwarrior
Journeyman
Posts: 91
Joined: Sat Dec 01, 2018 1:02 am

Change window dimensions?

Post by meadwarrior »

Hello!

I have this big black area below the game that doesn't really do anything.

:?: Is it possible to change the size of the game window (reduce the amount of vertical pixels)?

Image

Thanks!
User avatar
Sophia
Concise and Honest
Posts: 4239
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Re: Change window dimensions?

Post by Sophia »

Unfortunately, no. 640x480 is pretty hardcoded currently.
User avatar
meadwarrior
Journeyman
Posts: 91
Joined: Sat Dec 01, 2018 1:02 am

Re: Change window dimensions?

Post by meadwarrior »

Thanks, and no problem! I saw in another thread that it was possible to add graphics to the GUI, I'll try adding some borders and headers.
User avatar
Gambit37
Should eat more pies
Posts: 13714
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: Change window dimensions?

Post by Gambit37 »

Don't forget that some of that black space is used by the text messages that pop-up during game play. You'll need to account for that in whatever you design. (There are ways to adjust the size of the text area but it involves a some coding which it seems you want to avoid?)
User avatar
meadwarrior
Journeyman
Posts: 91
Joined: Sat Dec 01, 2018 1:02 am

Re: Change window dimensions?

Post by meadwarrior »

Thanks, Gambit! The text areas are already sort of factored in, but there's still more than enough screen estate left. I'll have to check the original DM and some other dungeon crawlers again to get some ideas on how they used the spare space.
And yes, I'd like to avoid coding whenever possible :oops: It's just too 'risky' for non-coders to write anything too complicated, I guess.

...unless I can copy&paste something :D
User avatar
Gambit37
Should eat more pies
Posts: 13714
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: Change window dimensions?

Post by Gambit37 »

Don't forget that original DM was designed for 320x200. As DSB runs in a "doubled" window, you might expect that to be 600x400, but it's not, it's 640x480 -- so there's an additional 80 pixels of black space that never gets used.

For my own re-design of DMs interface, I've made that extra space a feature and have re-designed everything to use it all :-)

By the way, I like the style you've chosen for your game. Very unusual and distinctive. You definitely have a unique flavour here and I'm intrigued to see more.
User avatar
meadwarrior
Journeyman
Posts: 91
Joined: Sat Dec 01, 2018 1:02 am

Re: Change window dimensions?

Post by meadwarrior »

Oooh, so that's why! I should've checked my screenshot dimensions :D

Thank you!
I'm looking forward to see your custom interface! I've watched the video of your character selection screen recently and it was phenomenal.

By the way, I can't seem to find the thread that described how to add graphics to the GUI... Would you happen to know where to look?

Thanks!
User avatar
meadwarrior
Journeyman
Posts: 91
Joined: Sat Dec 01, 2018 1:02 am

Re: Change window dimensions?

Post by meadwarrior »

--- EDIT: Found it! ;)
User avatar
meadwarrior
Journeyman
Posts: 91
Joined: Sat Dec 01, 2018 1:02 am

Re: Change window dimensions?

Post by meadwarrior »

--- EDIT 2: Or did I...?
I didn't :( I sent you a PM if that's okay.
User avatar
Gambit37
Should eat more pies
Posts: 13714
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: Change window dimensions?

Post by Gambit37 »

I got your PM and replied :)
User avatar
meadwarrior
Journeyman
Posts: 91
Joined: Sat Dec 01, 2018 1:02 am

Re: Change window dimensions?

Post by meadwarrior »

It worked perfectly!

Image

Thank you very much, Gambit! Your help is very appreciated.
Post Reply