... and it took me 5 minutes.
I have always wanted to know how to program games, I tried with Game Maker but that Program pisses me off, then I tried C++ but After 4 1/2 months of trying I still haven't grasped the basics.. yeah I'm stupid. Then yesterday My step mom and my dad got me a book named 'Game Programming for Teens' Written by Maneesh Sethi and it teaches you everything you need to know about Blitz Basic to mae a game, which is a Space Invaders style game, then it gives you dozens of links to websites where you can further your knowlege. Very good Book and if your looking at buying it... do.
All it is is coding, because I haven't registered Blitz Basic, and its only a guess the number game. I thought I'd post it here because its my first ever project I have finished;
;demo02-11.bb - Try to guess the number
Print "Welcome to the Guessing Game!"
AppTitle "Guessing Game!"
;Seed the random generator...don't worry, it willl be explained later
SeedRnd MilliSecs()
;Pick a number between 1 and 100
numbertoguess = Rand(1,100)
;The num of guesses the user has used
numofguesses = 0
;set the beginning of loop label
.loopbegin
;Find out the user's guess
guess = Input$("Guess a number ")
;If player guesses outside of range, tell him to guess again
If guess > 100 Or guess < 1
Print "Pick a number between 1 and 100"
;Go back to the beginning
Goto loopbegin
EndIf
;Add a guess to the guess counter
numofguesses = numofguesses + 1
;If the guess is too low, go back to beginning
If guess < numbertoguess Then
Print "The number was too low."
Goto loopbegin
;If guess is too high, go back to the beginning
Else If guess > numbertoguess Then
Print "The number was too high."
Goto loopbegin
EndIf
Print "You guessed the number " + numbertoguess + " in " + numofguesses + " tries!."
WaitKey
Screenshots:You must compile it yourself for it too work.
And, I don't think it is, but if this is in the wrong section, please move it =).