
-----------------------------------
PHP God
Mon Mar 17, 2003 11:25 am

exiting fullscreen
-----------------------------------
I have a program (a number guessing game that allows you to set which numbers you guess between, sad, i know). It goes into full screen, but when the user says that they don't want to play again, How can I make it exit fullscreen.

-----------------------------------
Tony
Mon Mar 17, 2003 12:04 pm


-----------------------------------
if they just dont want to play, you can terminate the program with quit

to answer your question though, you can reset the window size using

View.Set("graphics:length;height")

Note: Its the same as setscreen() , no difference.


View.Set( "graphics:" + intstr(maxx-100) + ";" + intstr(maxy-100) + "" )


this will resize the screen and make it 100 pixels shorter both on X and Y axis.

-----------------------------------
PHP God
Wed Mar 19, 2003 11:58 am


-----------------------------------
The quit function left the stuipid fullscreen activated, and the other code only cleared the fullscreen.

As well, anyone know how to change the background color of fullscreen program?

-----------------------------------
Tony
Wed Mar 19, 2003 1:03 pm


-----------------------------------
quit function has different results based on your settings. Such as if at compile time you chose an option to quit the program imidiatly, it will close the window. So in other words - your program will work fine once you compile it to an .exe file

the other code resizes the window and shows X button to close it manually.

as for the background color


colorback(blue)
cls


-----------------------------------
PHP God
Mon Mar 31, 2003 12:22 pm

Text
-----------------------------------
How do i change text size and color for the entire game?

-----------------------------------
Blade
Mon Mar 31, 2003 12:26 pm


-----------------------------------
dont know how to change the font size, but for the text color use colour()
colour(blue)
cls

-----------------------------------
Tony
Mon Mar 31, 2003 3:14 pm


-----------------------------------
you cant change the size/font of the program :? You'd have to use Font. to display all your text.
