• Advertisement
Sign in to follow this  

Game

This topic is 4885 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
Not a good way to ask a question. Especially not your first one. Tell us your level of experience, what you are trying to do, what language you are working with, and read the FAQ.

Have you already tried google?

This might be what you are looking for.

Oh... Google... your wonders cease to amaze us...

Share this post


Link to post
Share on other sites
This may help:


10 HOME
20 PRINT "press 1 to win."+CHR$(13)+"press 2 to lose."
30 GET A
35 PRINT
40 IF A = 1 THEN FLASH:PRINT "you win!"+CHR$(7)+CHR$(7):NORMAL
50 IF A = 2 THEN PRINT "you lose!"
60 PRINT:PRINT
70 PRINT "would you like to play again?(y/n)"
80 GET A$
90 IF A$ = "y" THEN GOTO 10
100 IF A$= "Y" THEN GOTO 10
110 PRINT "BYE"

Share this post


Link to post
Share on other sites
That code is the frickin' bomb. Brings back memories of my wayward youth spent coding in front of the sickly green glow of an Apple IIe monitor.

Share this post


Link to post
Share on other sites
Quote:
Original post by Kelly G
This may help:


10 HOME
20 PRINT "press 1 to win."+CHR$(13)+"press 2 to lose."
30 GET A
35 PRINT
40 IF A = 1 THEN FLASH:PRINT "you win!"+CHR$(7)+CHR$(7):NORMAL
50 IF A = 2 THEN PRINT "you lose!"
60 PRINT:PRINT
70 PRINT "would you like to play again?(y/n)"
80 GET A$
90 IF A$ = "y" THEN GOTO 10
100 IF A$= "Y" THEN GOTO 10
110 PRINT "BYE"



LOL! You have forgotten about an important line...

5 REM Text Adventure
[LOL]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement