Hello! So, as I was working on my little linear game (with the crappiest sci-fi plot ever), I realized my game is TOO SIMPLE. I am looking for some suggestions to make it more interesting like puzzles, or add something to the program that I have never used before. Half of it is print statements though… I will post my code here.
from sys import exit
def bot_room():
print("You entered room #627, the old robot facility.")
print("These robots had been made for construction and not battle.")
print("But Hades has hacked them and they will kill anyone on sight.")
print("You see an EMP charge on the far end of the room.")
print("Do you battle the bots, try to outrun the bots and get to the HQ, or take a risk to obtain the EMP charge?")
choice = input('> ')
if 'battle' in choice:
dead("The robots are much stronger than you and kill you...")
elif 'outrun' in choice:
dead("The robots were much faster and killed you...")
elif 'EMP' in choice or 'emp' in choice:
print("You obtained the EMP charge and set it off before the bots could kill you.")
print("You now have the battle exo-skeleton.")
print("You suddenly hear cries from down the hallway.")
print("Do you investigate or go to the HQ?")
decision = input('> ')
if 'investigate' in decision:
hostage_room('exo-skeleton')
elif 'HQ' in decision:
hq_room(False)
else:
print("I don't know what that means.")
else:
print("I don't know what that means.")
def turret_room():
print("You entered room #572, the defense system management center.")
print("The defense systems have been taken over and the turrets shoot on sight.")
print("The turrets can fire .50 cal rounds but overheat in a while.")
print("You have a simple hacking module, but you will have to take a risk and get to console running from cover to cover.")
print("Do you hack the defense system, or try to escape?")
choice = input('> ')
if 'hack' in choice:
print("You make your way hiding behind cover and moving when turrets overheat.")
print("You were finally able to install the module and deactivated the turrets.")
print("You have obtained energy gun.")
print("You suddenly hear cries from down the hallway.")
print("Do you investigate or go to the HQ?")
decision = input('> ')
if 'investigate' in decision:
hostage_room('energy gun')
elif 'HQ' in decision:
hq_room(False)
else:
print("I don't know what that means.")
elif 'escape' in choice:
dead("The turrets shoot you down before you could run away...")
else:
print("I don't know what that means.")
def hostage_room(weapon):
print("You investigate and find hostages.")
print("Hades has captured the researchers working in THE FACILITY and used nano bots to take over the minds of the guards.")
print("You are running out of time. You try saving the hostages or go to the HQ.")
print("Do you save the hostages or leave them?")
choice = input('> ')
if 'save' in choice:
print(f"You used your {weapon} and succesfully knocked out all guards.")
print("You have secured the hostage researchers.")
print("One of them tell you where Hades hid the quantum module.")
print("You thank him and go to the module's location.\nYou have obtained the quantum module.")
hq_room(True)
elif 'leave' in choice:
print("You let the hostages die...")
print("You leave and were tricked by Hades. You are now in the HQ.")
hq_room(False)
else:
print("I don't understand that")
def hq_room(quantum_module):
print("You have reached the HQ.")
if quantum_module == True:
ending()
elif quantum_module == False:
# Work in progress
def dead(reason):
print(f'{reason} Mission failed.')
exit(0)
def start():
print('<will enter some stuff here later>')
room = input('> ')
if 'robot' in room:
bot_room()
elif 'defense' in room:
turret_room()
else:
print("You can only go to these 2 locations")
def ending():
print("You connected the module.")
print("INSTALLING MODULE..... MODULE INSTALLED")
print("Hades is trying to destroy the module. You must stop him.")
print("1011010----101101000----1111000----100101100----10110100")
print("5 circles appeared before you. The numbers and the circles have a connection, you must figure it out!")
op1 = int(input('> '))
op2 = int(input('> '))
op3 = int(input('> '))
op4 = int(input('> '))
op5 = int(input('> '))
solution = [op1, op2, op3, op4, op5]
if solution == [90, 360, 120, 300, 180]:
print("You are almost there, just a bit more.")
print("Do you want a hint?")
choice = input('Y/N')
if choice == 'Y' or choice == 'y':
print("Those are all angles. Picture a clock with 3 o'clock as 0 degrees.")
else:
print("Okay, but you must figure it out quick.")
else:
dead("You got it wrong.")
op1 = int(input('> '))
op2 = int(input('> '))
op3 = int(input('> '))
op4 = int(input('> '))
op5 = int(input('> '))
solution = [op1, op2, op3, op4, op5]
if solution == [12, 3, 11, 5, 9]:
print("You did it! Hades has been stopped. You saved the world. Great job. Mission accomplished.")
print("You will always be remembered as a hero.")
As of now, it is still a work in progress and so the last half is full of bugs and pretty weird too. I am very sorry for that. And for it’s length too. And for it’s simplicity too. (I looked at other threads related to ex36 and my game is probably the most unoriginal… )
Also, is there a way I can add an inventory system and checkpoints where the players loses? Mostly, I just want to add some stuff like puzzles, for example in turret_room() function. I did a little puzzle in ending() which is not complete yet but again, that puzzle is kinda simple.