I'm currently working on a text adventure game for my first project. I am a beginner so I am seeking help with my code. Please comment any tips and general help regarding with making my code better, faster or more organised! I only started Python two weeks ago so any help would be greatly appreciated. I decided to only submit the code for the first room as I don't want to submit too much code at once.
health = 100
coins = 0
tutorial = True
gameStart = False
death = False
spawn = True
livingRoom = False
Bathroom = False
Bedroom = False
Kitchen = False
wardrobeSpawn = False
spawnStart = True
telev = False
def countCoins():
print
print("You have: " + str(coins) + " coins")
while gameStart == True:
if spawn == True:
if spawnStart == True:
print
print(bcolors.FAIL + "You wake up in a room you don't
recognise, with no idea how you got there")
print
print(bcolors.ENDC + "You look around and see a wardrobe
and a door")
spawnStart = False
elif spawnStart == False:
print
spawnIn = raw_input("")
spawnIn = spawnIn.lower()
if spawnIn == "coins":
countCoins()
spawnStart = False
elif spawnIn == "wardrobe":
if wardrobeSpawn == False:
print
print "The wardrobe seems quite empty, but you do
find a coin in the far left corner, you put it in your pocket"
print
coins += 1
wardrobeSpawn = True
spawnStart = False
elif wardrobeSpawn == True:
print "This wardrobe looks oddly familiar, you have
already explored it"
print
spawnStart = False
elif spawnIn == "door":
print
print ("You walk out the door")
print
spawn = False
livingRoom = True
elif spawnIn == "look":
print("You look around and see a wardrobe and a door")
print
spawnStart = False
else:
print("That is an unvalid command. Try again")
print
spawnStart = False