Voting

Category

assembly language

Bookmarking

Del.icio.us Digg Diigo DZone Earthlink Google Kick.ie
Windows Live LookLater Ma.gnolia Reddit Rojo StumbleUpon Technorati

Language GLPRO

Date:04/20/05
Author:Rainer
URL:n/a
Comments:2
Info:n/a
Score: (2.40 in 5 votes)
; 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

Alternative Versions

Comments

>>  Nima said on 08/22/05 08:05:07

Nima A Glpro script in the year 2005? Impressing. Is GLPRO still alive?

>>  JB said on 01/02/06 08:15:16

JB Still alive as long as anybody uses it.

; 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

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!

Name:

eMail:

URL:

Security Code:
  
Comment: