cop-chase-1/cop-chase-1.bas

29 lines
580 B
QBasic

rem A simple game that uses a randomizer to make the gane different "everytime"
dim health as integer rem player health
dim pbullets as INTEGER rem nume of player bullets
dim cheststate as INTEGER rem state of the chest with bullets
dim cpullets as INTEGER rem number of bullets in the chest
dim shotloc as INTEGER rem where the criminal is shot
dim situation as INTEGER rem one of three situations of the game
RANDOMIZE timer
health = int(rnd * 100) + 1
pbullets = int(rnd * 10) + 1
cheststate = int(rnd *
situation = int(rnd * 3) + 1
print health
print situation