Computer Science Canada

Full Screen

Author:  Mephi [ Wed Jul 02, 2003 1:30 pm ]
Post subject:  Full Screen

Is it possible to make a full screen game where you dont see like the top bar and the sides an everything? like in real games?

Author:  PaddyLong [ Wed Jul 02, 2003 1:38 pm ]
Post subject: 

don't think in 4... closest you can get in 4 is to use max for the x and y sizes - setscreen("graphics:max;max")

in 3.1 you can do real fullscreen with something like
var window : int := Window.Open ("fullscreen")

Author:  eggplant_burger [ Wed Jul 02, 2003 4:20 pm ]
Post subject: 

well, since we know how to get a fullscreen, now does anyone know how to set the resolution in fullscreen mode?? (I want my program to run in 800x600, but if I make it a stand-alone, the user might have a different desktop resolution)

Author:  Andy [ Wed Jul 02, 2003 5:19 pm ]
Post subject: 

ya juss go setscreen("graphics:max;max") and to take off the button bar juss have setscreen("nobuttonbar")

Author:  krishon [ Wed Jul 02, 2003 5:24 pm ]
Post subject: 

lol, or u can do wut dan did b4 in his old game..and force the user to change the resolution and stuff Laughing go force!!

Author:  Tony [ Wed Jul 02, 2003 7:19 pm ]
Post subject: 

yeah, lol... I saw someone else do that too... using v3 though. Then made it fullscreen and checked maxx and maxy to see my current resolution, then told me it was set to too low and didnt run the program.

(heh, you can change screen's resolution through directX, not sure of openGL)

Author:  Dan [ Wed Jul 02, 2003 7:39 pm ]
Post subject: 

krishon wrote:
lol, or u can do wut dan did b4 in his old game..and force the user to change the resolution and stuff Laughing go force!!


Twisted Evil

Author:  eggplant_burger [ Wed Jul 02, 2003 11:30 pm ]
Post subject: 

Wow, Dan, that signature is so true, I almost feel like crying.

Anyways, I guess I'll just have to force the user to change to 800x600. Oh, fie on the horrible, horrible ineptitude of Turing.

Author:  Andy [ Thu Jul 03, 2003 9:50 am ]
Post subject: 

didn't u read my post? juss use setscreen("graphics:maxx;maxx") that'll set the screen to the full size and if u want to make a real game, dun use numbers for the co-ordinates of ur pictures use maxx div something and maxy div something so it'll work on any resolution

Author:  PaddyLong [ Thu Jul 03, 2003 9:52 am ]
Post subject: 

there is still the problem of different sized pictures dodge... obviously a 100x100px image will appear larger at 800x600 than it will at 1024x768

Author:  Andy [ Thu Jul 03, 2003 9:52 am ]
Post subject: 

then use Pic.Scale... how hard is it ?

Author:  eggplant_burger [ Thu Jul 03, 2003 1:10 pm ]
Post subject: 

I'd do that, Dodge, but it's too much work. And text would get screwed up (in terms of relative size).

Author:  Mazer [ Thu Jul 03, 2003 1:10 pm ]
Post subject: 

very true. although one minor problem. suppose your desktop resolution is 800x600 (i know, that's crap but bear with me). if you make a turing window and set it to max, the window size won't actually be 800x600, but more like 788x541. this will be due to the pixels that make up the borders of the window as well as the taskbar at the bottom of the screen. and it won't always be the same, depending on the version of windows as well as how big someone made their taskbar (ie, the specifics of the theme they're using) the size of the window you make will be different.

so what i was thinking is just check the size of the window you make and say if it was 788x541 then you'd know to make the graphics for 800x600. but then i thought about what i just talked about so that would be a problem.

i guess you could take a ratio of the width of the window to the width of your pictures and another of the height of the window to the height of your pictures, and then resize all of the pictures accordingly right when you run the program. and it shouldn't even take long for turing to do, the only real problem would be for the programmer to go through every picture made and resize them accordingly.

Author:  eggplant_burger [ Thu Jul 03, 2003 1:16 pm ]
Post subject: 

well, mazer, what you'd actually have to do is..

1) Check for maxx/maxy

2) Set to "fullscreen" at that resolution
-fullscreen will use the full 800x600

3) Make EVERY SINGLE FRICKIN CALCULATION as a relative value in terms of maxx/maxy

4) Use Pic.Scale to make your pictures the right relative size

5) Make sure any font sizes change if you're using Font.Draw


.... way too much work for me.

Author:  Mazer [ Thu Jul 03, 2003 2:03 pm ]
Post subject: 

actually, you'd have to make the fullscreen window before checking maxx/maxy.

but either way, i was writing that assuming that turing 4.0 was being used (as it almost always is), therefore no fullscreen.

and yeah, all those calculations would be a bitch but then, so is turing

Author:  Andy [ Thu Jul 03, 2003 5:14 pm ]
Post subject: 

no see that's y u make ur own functin that'll make font.draw easier for u

Author:  PaddyLong [ Thu Jul 03, 2003 6:06 pm ]
Post subject: 

yeah just make custom methods for Font.Draw and either new pic (Pic.FileNew) or draw pic (Pic.Draw) that takes similar parameters but changes size values according to the resolution

Author:  Andy [ Thu Jul 03, 2003 7:00 pm ]
Post subject: 

its very much possible, juss need to spend alot of time...

Author:  eggplant_burger [ Thu Jul 03, 2003 7:38 pm ]
Post subject: 

I'm too poor for Turing 4.0, though, so I use 3.1, Mazer

Author:  krishon [ Fri Jul 04, 2003 10:27 am ]
Post subject: 

i thought u have 4.0 now

Author:  eggplant_burger [ Thu Jul 10, 2003 10:00 pm ]
Post subject: 

Yay I have 4.0


: