Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Albert Cuandero on Tue 24/08/2004 18:26:33

Title: Window size
Post by: Albert Cuandero on Tue 24/08/2004 18:26:33
Hi all!

Sorry if this has been posted before, but I really can't find it anywhere here or in the manual:

Can I change the the game to run in a maximized Window BUT keep in the original resolution?

I mean, I want a black border around my 800x600 or 640x480 pictures that covers all the rest of the screen.

I find it very annoying to either play surrounded by my desktop (spoils the mood) or to stretch the image to full screen (*yuck*)

Please don't tell me to set game resolution to 800x600 and use only 640x480 images - I already figured that one out  ;D
Title: Re: Window size
Post by: Mr Jake on Tue 24/08/2004 18:32:42
you could put the game in full screen mode...
Title: Re: Window size
Post by: Albert Cuandero on Tue 24/08/2004 18:44:17
That's what I meant - then it stretches the picture all over the screen, making it look blocky...

I mean full screen AND original pixelsize
Title: Re: Window size
Post by: Mr Jake on Tue 24/08/2004 18:45:31
if you set the game in full screen it changes your computer res so the picture is the original size, it shouldnt appear stretched
Title: Re: Window size
Post by: Albert Cuandero on Tue 24/08/2004 18:55:22
Sorry, Hotspot, but we are talking past each other here... (might be because I am not native in eglish)

When I run the 640x480 game in a window, I get a 640x480 window in the middle of my 1280x1024 screen -right?

If I run the same game in full-screen, I get a 640x480 window filling my 640x480 screen.

Now 640x480 looks, to my taste, crappy on a 17"

I would like to know if I can have: a 640x480 game, in the middle of a 800x600 window, itself in the middle of a 1280x1024...
Title: Re: Window size
Post by: Darth Mandarb on Tue 24/08/2004 19:18:33
I think I know what he's saying ... because I've wanted this same thing before.

Something like this (if you're using 800x600 resolution in Windows)
(http://www.twin-design.com/ags/graphics/ags_tech01.jpg)

The game would run at whatever res it's set at, but the screen would be full.  The idea that I had would be that AGS would detect the screen res, and you could have different background graphics for each resolution so you could fill up that black background with something else than just black.
Title: Re: Window size
Post by: Albert Cuandero on Tue 24/08/2004 19:41:14
Thanks Darth Mandarb

"A picture is worth a thousanf words" - how true!

Exactly what I meant!
Title: Re: Window size
Post by: Barbarian on Tue 24/08/2004 22:12:25
You could probably "simulate" having the surrounding border to display a black background perhaps in a couple of ways...

For example, with a WebPage Editor program, you might create a simple blank web-page and just make the background color black.. Then open that blank webpage with the black background into a browser, such as IE and F11 to Full-Size the browser window, which should effectively make the whole desktop to pretty much appear as being a black background now.

Now when you run your game in a window on top of this, you'll see your game running in the middle of a black background. Well, that's just one idea..

PS: If doing it something like this way, you can always use Windows "Alt + Tab" feature to switch between any running programs.
Title: Re: Window size
Post by: CodeJunkie on Tue 24/08/2004 23:07:17
But then you'll get the MS window thingymabobs and if you move the mouse too far to the top-right you'll accidentally minimize or worse, close your game.  Apart from enlarging each room image to have a border there isn't much I tihnk you can do. You could perhaps have a single black background imagem to use for every room, then make the room graphics as object 0 in each room so that all other objects are on top.  I'm not too adept in AGS but perhaps if you make a baseline well under object 0 it will draw the player on top of it.  It's a bit of a bodge though and if it does work it would be bad practise.