Language Game Maker Language
| Date: | 05/25/05 |
| Author: | Jake Gilbert |
| URL: | http://www.olddoom.com/ |
| Comments: | 8 |
| Info: | http://www.cs.uu.nl/people/markov/gmaker/doc/html/400_index.html |
| Score: |
//in create event:
bottles = 99;
s = "s";
sm1 = "s";
room_speed = 1;
text = "";
//in draw event:
if ((bottles>2) || (bottles=0)) {s = "s"; sm1 = "s";}
if (bottles = 1) {s = ""; sm1 = "s";}
if (bottles = 2) {s = "s"; sm1 = "";}
text = (string(bottles) + " bottle" + s + " of beer on the wall, ");
text += (string(bottles) + " bottle" + s + " of beer." + "#");
text += ("Take one down, pass it around, ");
text += (string(bottles-(bottles>0)) + " bottle" + sm1 + " of beer on the wall.");
draw_text(10,10,text);
if (bottles > 0) bottles -= 1;
Download Source | Write Comment
Alternative Versions
| Version | Author | Date | Comments | Rate |
|---|---|---|---|---|
| GMLv6, requires no extra coding to enabl | Scoochi2 | 05/04/07 | 1 |
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
I have made an alternate version where all you need to do is to create a room (Game Maker will not let you run the game otherwise) and put my code in the room creation code. Voila
You can find my version at the follwing URL:
http://scoochi2.freehostia.com/beerbottles.php