#-------------------------------------------------------------------------- # Name : Endgame # Purpose : 11DGT # Author: Your Name # Created : Date # Copyright : © Your name and Date #-------------------------------------------------------------------------- # Import libraries import random import time from time import sleep import sys # Set starting variables ----------------------------------- # Staring Health cap_health = 50 thanos_health = 100 # Damage presets thanos_sword = 0 cap_mjolnir = 0 # Deflect Preset deflect = 0 # Player Decision Preset cap_choice = " " def typewriter_effect(text, delay=0.03): """Prints text one character at a time with a typing effect.""" for char in text: print(char, end="", flush=True) time.sleep(delay) time.sleep(0.5) print() # Move to a new line after printing #Intro typewriter_effect("The sky grows darker as the army of Thanos moves closer.") typewriter_effect("Thor and Tony lie battered and motionless on the ground from the previous encounter.") typewriter_effect("It is up to you, Cap, to finish this. The fate of the universe is your weight to bare.") typewriter_effect("You stand there, hurt. But you have your shield in arm hand and wield Mjolnir in the other.") typewriter_effect("You are worthy, but will the power of Thor be enough....") typewriter_effect("You are in the ENDGAME now")