Author |
Message |
PHP God
|
Posted: Mon Mar 17, 2003 11:25 am Post subject: 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. |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
Tony

|
Posted: Mon Mar 17, 2003 12:04 pm Post subject: (No subject) |
|
|
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.
code: |
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. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
 |
PHP God
|
Posted: Wed Mar 19, 2003 11:58 am Post subject: (No subject) |
|
|
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

|
Posted: Wed Mar 19, 2003 1:03 pm Post subject: (No subject) |
|
|
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
code: |
colorback(blue)
cls
|
|
Tony's programming blog. DWITE - a programming contest. |
|
|
|
 |
PHP God
|
Posted: Mon Mar 31, 2003 12:22 pm Post subject: Text |
|
|
How do i change text size and color for the entire game? |
|
|
|
|
 |
Blade
|
Posted: Mon Mar 31, 2003 12:26 pm Post subject: (No subject) |
|
|
dont know how to change the font size, but for the text color use colour()
|
|
|
|
|
 |
Tony

|
Posted: Mon Mar 31, 2003 3:14 pm Post subject: (No subject) |
|
|
you cant change the size/font of the program You'd have to use Font. to display all your text. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
 |
|