Initial commit
This commit is contained in:
parent
ed00d551c7
commit
6a6a514d1b
29
cop-chase-1.bas
Normal file
29
cop-chase-1.bas
Normal file
|
@ -0,0 +1,29 @@
|
|||
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
|
Loading…
Reference in New Issue
Block a user