Sleep/
Sleep_1.bas
' |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@|
' | Sleep Example 1 |
' | by |
' | GDN Black Ops : FreeBASIC Division |
' |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@|
' http://gamedesign.wikidot.com/freebasic:sleep
' Sleep pauses the execution of the game until the user presses a key.
Sleep
End
Sleep_2.bas
' |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@|
' | Sleep Example 2 |
' | by |
' | GDN Black Ops : FreeBASIC Division |
' |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@|
' http://gamedesign.wikidot.com/freebasic:sleep
' Sleep pauses the execution of the game for a number of milliseconds or until
' the player presses a key. A millisecond is 1000th of a second. Therefore,
' 1 second is 1000 milliseconds.
' In this example, Sleep pauses for 5 seconds or until the player presses a
' key
Sleep 5000
End
Sleep_3.bas
' |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@|
' | Sleep Example 3 |
' | by |
' | GDN Black Ops : FreeBASIC Division |
' |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@|
' http://gamedesign.wikidot.com/freebasic:sleep
' If you want the player not to be able to skip the time delay caused by
' Sleep, put a 1 after the number of seconds you want Sleep to pause.
' In this example, Sleep will pause for 5 seconds. Pressing a key will not
' end the pause.
Sleep 5000, 1
End
page revision: 3, last edited: 10 May 2007 16:47