my first game was a bomb game were you should defuse bombs.
I have just coded this little text based game were you need to defuse a bomb.
Here is the code: (works in DB and DBPRO)
` Bomb game
` by : Kasper
` feel free to use this source in you game.
` programmed in: 5 minuts
` make the intro screen
Print "*BOMB GAME*"
print "*BY: KASPER*"
print "PRESS ANY KEY TO START"
wait key
cls
text 200,380, "Press UPKEY for blue wire and DOWNKEY for red wire"
for x= 10 to 1 - step - 1
If upkey() = 1 then goto happy
if downkey() = 1 then goto lose
print "Exploding in : " + str$(x)
sleep 500
next x
goto lose
happy:
cls
print "YOU WON!!!!"
sleep 1000
end
lose:
cls
print "You lose"
sleep 1000
end
The Nerd