Print "hello! welcome to my game! what's your name?"
input "enter name here: ";Name$
Print "Your name is: " ;Name$
Print "Well, ";Name$
Print " Welcome..i hope you have alot of fun here in my game!"
Print " wanna play a game of guess me number? well too bad, you opened this file..you have to ";Name$
Randomize (Timer())
MyRandomNumber = RND (10)
Print "My guess is between 1 and 10"
Repeat
Input "Your guess: ";MyGuess
If MyGuess = MyRandomNumber
GuessedRight = 1
Print "Cool you found it ";Name$
Else
GuessedRight = 0
Print "Try again ";Name$
EndIf
Until GuessedRight = 1
wait key
end
It works well, and I'm really new to this so this is a cool improvement (knowing the fact i found out the name$ from just messing around in the code)
use it i you like...
~~~ Insert witty signature here~~~