Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #-----Glory: A WIP Game by Benjamin Ward-------
- # (C) Disc Games
- #Reminder ---- If death or open unfinished place, put death()
- #ToDo:
- #Level/XP system
- #World 2
- import pygame
- import time
- gold = 0
- itemSlotArmorHead = False
- itemSlotArmorChest = True
- itemSlotArmorLegs = False
- itemSlotArmorBoots = False
- itemSlotWeapon1 = False
- itemSlotWeapon2 = False
- headArmorValue = 0
- chestArmorValue = 0
- legsArmorValue = 0
- bootsArmorValue = 0
- totalArmorValue = headArmorValue + chestArmorValue + legsArmorValue + bootsArmorValue
- enterCave = ''
- rustySwordItem = False
- leatherTunicItem = False
- if leatherTunicItem == True and itemSlotArmorChest == False:
- itemSlotArmorChest = True
- chestArmorValue = 2
- print("The leather tunic is now equipped")
- elif leatherTunicItem == True and itemSlotArmorChest == True:
- print("Your armor value is currently: ", totalArmorValue, "Equipping a Leather Tunic will make this value: ", totalArmorValue - chestArmorValue + 2)
- print("Would you still like to equip this item? (Yes or No)")
- lti = input("")
- if lti == "y" or lti == "Y" or lti == "yes" or lti == "Yes":
- itemSlotArmorChest = True
- chestArmorValue = 2
- print("Your armor value is now ", totalArmorValue)
- else:
- print("This Leather Tunic will be discarded.")
- leatherTunicItem = False
- leatherLeggingsItem = False
- ironHelmItem = False
- ironChestplateItem = False
- ironBootsItem = False
- chainmailTunicItem = False
- chainmailLeggingsItem = False
- helmOfInvisibilityItem = False
- bootsOfSwiftnessItem = False
- dragonscaleChestplateItem = False
- dragonscaleLeggingsItem = False
- pottedPlantDeath = False
- goblinDeath = False
- direwolfDeath = False
- giantRatDeath = False
- vampireBatDeath = False
- snakeDeath = False
- orcDeath = False
- caveOgreDeath = False
- hydraDeath = False
- dragonDeath = False
- wraithDeath = False
- pitTrapDeath = False
- drowningDeath = False
- fallingDeath = False
- starveDeath = False
- caveInDeath = False
- def intro() :
- introTrue = input("Press escape to skip the introduction, otherwise press the return key.")
- keys = pygame.key.get_pressed()
- if keys[pygame.K_ESC]:
- print("Skipping Intro..... Complete")
- elif keys[pygame.K_ENTER]:
- print('In this game, you are in a world full of mystical beings,')
- print('and monsters such as dragons, goblins, and giant spiders.')
- time.sleep(5)
- print('')
- print('Today, you decide to explore the caves below your village.')
- print('')
- time.sleep(4)
- print('The caves are a labyrinth of tunnels, and they contain people-s')
- print('wildest dreams as well as people-s darkest nightmares.')
- print('')
- time.sleep(5)
- print('You hunt around the village for equipment and money, and find')
- print('a few things, as well as what you already had.')
- print('')
- time.sleep(4)
- def death():
- global gold
- global enterCave
- global rustySwordItem
- global leatherTunicItem
- global leatherLeggingsItem
- global ironHelmItem
- global ironChestplateItem
- global ironBootsItem
- global chainmailTunicItem
- global chainmailLeggingsItem
- global helmOfInvisibilityItem
- global bootsOfSwiftnessItem
- global dragonscaleChestplateItem
- global dragonscaleLeggingsItem
- global armorValue
- global weaponValue
- global itemSlotArmorHead
- global itemSlotArmorChest
- global itemSlotArmorLegs
- global itemSlotArmorBoots
- global itemSlotWeapon1
- global itemSlotWeapon2
- global pottedPlantDeath
- global goblinDeath
- global direwolfDeath
- global giantRatDeath
- global vampireBatDeath
- global snakeDeath
- global orcDeath
- global caveOgreDeath
- global hydraDeath
- global dragonDeath
- global wraithDeath
- global pitTrapDeath
- global drowningDeath
- global fallingDeath
- global starveDeath
- global caveInDeath
- gold = 0
- enterCave = ''
- def gameLevelOne():
- intro()
- global gold
- global enterCave
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement