Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Darkbasic support Get resolution?

Author
Message
Behdadsoft
17
Years of Service
User Offline
Joined: 7th Apr 2009
Location: Tehran-Iran
Posted: 25th Apr 2013 16:25
Hi.

I want before start learn game making with darkbasick, Know that It can be Get System resolution and run it automaticaly?

and can show system resolution list that player choose one?

There is a sample?

Thanks
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 25th Apr 2013 17:11
Get Desktop Width()
Get Desktop Height()

PERFORM CHECKLIST FOR DISPLAY MODES

I live for video games! (And beers, and football, and cars!)
See what I live for here: [url]http:\\www.TeamDefiant.co.uk[/url]
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 25th Apr 2013 17:24 Edited at: 25th Apr 2013 17:25
Here's an example, ripped from one of my games.



TheComet


Level 91 Forumer - 9600 health, 666'666 keystroke power (*2 coffee)
Abilities: sophisticated troll, rage
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 25th Apr 2013 17:27
What a convoluted method! lol


Uses matrix1 for the display depth() command.

I live for video games! (And beers, and football, and cars!)
See what I live for here: [url]http:\\www.TeamDefiant.co.uk[/url]
Behdadsoft
17
Years of Service
User Offline
Joined: 7th Apr 2009
Location: Tehran-Iran
Posted: 25th Apr 2013 22:39
Thanks All
Derek Darkly
14
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 2nd May 2013 17:36 Edited at: 2nd May 2013 17:44
Quote: " (Me) Is there a way to determine what the current screen resolution is? I don't mean in the DB window itself, but rather the user's PC.
"

NM... found the answer here:
http://forum.thegamecreators.com/?m=forum_view&t=156821&b=1

D.D.
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 2nd May 2013 17:52
I guess my method wasn't good enough. lol

I live for video games! (And beers, and football, and cars!)
See what I live for here: [url]http:\\www.TeamDefiant.co.uk[/url]

Login to post a reply

Server time is: 2026-07-07 02:19:55
Your offset time is: 2026-07-07 02:19:55