Language GLPRO
| Date: | 04/20/05 |
| Author: | Rainer |
| URL: | n/a |
| Comments: | 2 |
| Info: | n/a |
| Score: |
; Script 99bottles.gls
; Last modified by Rainer at 08.06.2002 15:57:09
; 99bottles@RainerBrang.de
; http://www.rainerbrang.de
;"Rest in peace, GLPRO".
;GLPRO Version of 99 bottles of beer
; black window, white text
drawCLEAR 0 0 0
color white
; scroll text when reaching the end of the window
set textSCROLL ON
; count down from 99 and do stuff
beginLOOP 99 1 -1
text @loop$" bottle(s) of beer on the wall, "@loop$" bottle(s) of beer"@crlf
text "Take one down and pass it around,"@crlf
text (@loop-1)$" bottle(s) of beer on the wall"@crlf
endLOOP
; wait for any key
waitKEY
Download Source | Write Comment
Download Source | Write Comment
Add Comment
Please provide a value for the fields Name,
Comment and Security Code.
This is a gravatar-friendly website.
E-mail addresses will never be shown.
Enter your e-mail address to use your gravatar.
Please don't post large portions of code here! Use the form to submit new examples or updates instead!
Comments
; black window, white text
drawclear black
color white
; scroll text when reaching the end of the window
set textscroll
; count down from 99 and do stuff
for bottle from 99 to 1
textln @bottle$" bottle(s) of beer on the wall, "$@bottle$" bottle(s) of beer"
textln "Take one down and pass it around,"
textln (@bottle-1)$" bottle(s) of beer on the wall"
next
; wait for key or click
wait