daily pastebin goal
28%
SHARE
TWEET

Untitled

a guest Feb 16th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ###
  2. ###Author: Alec Miller
  3. ###Description: This code displays three different characters: Adamant Adam, Cunning Chris,
  4. ###             and Joyful Jeff! There is also a 'custom' option to create one of these
  5. ###             slick looking characters for yourself!
  6. ###
  7. print('----- AVATAR -----') #Titlescreen
  8. character = 'Select an Avatar or create your own: \n'
  9. def main():
  10.     avatar = input(character) #Choose Jeff, Adam, Chris, or Custom for an avatar!
  11.     if avatar == 'exit':
  12.         return
  13.     while avatar != 'custom' and avatar != 'Adam' and avatar != 'Jeff' and avatar != 'Chris' and avatar != 'exit':
  14.         avatar = input('Select an Avatar or create your own: \n')
  15.        
  16.     if avatar == 'Adam': #Here is Adamant Adam!
  17.         def adam():
  18.             print()
  19.             print('''       ~-~
  20.      /-~-~-\\
  21.     /_______\\___''')
  22.             print("    |'''''''|")
  23.             print('''    | *   * |
  24.     |   V   |
  25.     |  ~~~  |
  26.      \_____/
  27.       |-X-|
  28.  0TTTT|---|TTTT0
  29.       |-X-|
  30.       |-X-|
  31.       |-X-|
  32.       HHHHH
  33.      /// \\\\\\
  34.     ///   \\\\\\
  35.    ///     \\\\\\
  36. <|||>       <|||>''')
  37.         adam()
  38.     if avatar == 'Chris': #Here is Cunning Chris!
  39.         def chris():
  40.             print()
  41.             print('''       ~-~
  42.      /-~-~-\\
  43.     /_______\\
  44.     |"""""""|
  45.     | U   U |
  46.     |   V   |
  47.     |  ~~~  |
  48.      \_____/
  49.       |-X-|
  50.  0WWWW|---|WWWW0
  51.       |-X-|
  52.       HHHHH
  53.      /// \\\\\\
  54.     ///   \\\\\\
  55.    ///     \\\\\\
  56.   ///       \\\\\\
  57. <>-<>       <>-<>''')
  58.         chris()
  59.     if avatar == 'Jeff': #And Here is joyful Jeff!
  60.         def jeff():
  61.             print()
  62.             print('''       ~-~
  63.      /-~-~-\\
  64.  ___/_______\\___
  65.     |"""""""|
  66.     | 0   0 |
  67.     |   V   |
  68.     |  ~~~  |
  69.      \_____/
  70.  0====|---|====0
  71.       |-X-|
  72.       |-X-|
  73.       HHHHH
  74.      /// \\\\\\
  75.     ///   \\\\\\
  76. #HHH#       #HHH#''')
  77.         jeff()
  78.     if avatar == 'custom':
  79.         def custom():
  80.             i = 1
  81.             print('Answer the following questions to create a custom avatar')
  82.             hat_direction = input('Hat style ? \n') #This is used for the direction of the hat.
  83.             eyes = input('Character for eyes ? \n') #Get the symbol for the eyes.
  84.             hair_type = input('Shaggy hair (True/False) ? \n') #Shaggy hair or nah?
  85.             arms = input('Arm style ? \n') #Get what the arms should look like.
  86.             torso = int(input('Torso length ? \n')) #How long is this freak of nature?
  87.             legs = int(input('Leg length (1-4) ? \n')) #How lengthy should the legs be?
  88.             shoes = input('Shoe look ? \n') #Does he have Jordans or Sketchers?
  89.             print()
  90.             if hat_direction == 'right': #HAT #HAT #HAT #HAT #HAT #HAT #HAT #HAT #HAT #HAT #HAT #HAT
  91.                 print('''       ~-~
  92.      /-~-~-\\
  93.     /_______\\___''')
  94.             if hat_direction == 'both':
  95.                 print('''       ~-~
  96.      /-~-~-\\
  97.  ___/_______\\___''')
  98.             if hat_direction == 'left':
  99.                 print('''       ~-~
  100.      /-~-~-\\
  101.  ___/_______\\''')
  102.             if hat_direction == 'front':
  103.                 print('''       ~-~
  104.      /-~-~-\\
  105.     /_______\\''')
  106.             if hair_type == 'True': #HAIR #HAIR #HAIR #HAIR #HAIR #HAIR #HAIR #HAIR #HAIR #HAIR #HAIR
  107.                 print('    |"""""""|')
  108.             if hair_type == 'False':
  109.                 print("    |'''''''|")
  110.             print('    | ' + eyes + '   ' + eyes + ' |')
  111.             print('''    |   V   |
  112.     |  ~~~  |
  113.      \_____/''')
  114.             print(' 0' + arms + arms + arms + arms + '|---|' + arms + arms + arms + arms +'0') #ARMS
  115.             #ARMS #ARMS #ARMS #ARMS #ARMS #ARMS ^^^^^^^^^^^^^^^^^^ ARMS ^^^^^^^^^^^^^^^^^^^^^^^^^
  116.             while torso >= i: #TORSO #TORSO #TORSO #TORSO #TORSO #TORSO #TORSO #TORSO #TORSO #TORSO
  117.                 print('      |-X-|')
  118.                 i += 1
  119.             print('      HHHHH')
  120.             if legs == 1: #LEGS #LEGS #LEGS #LEGS #LEGS #LEGS #LEGS #LEGS #LEGS #LEGS #LEGS #LEGS #LEGS
  121.                 print('     /// \\\\\\')
  122.             if legs == 2:
  123.                 print('''     /// \\\
  124.     ///   \\\\\\''')
  125.             if legs ==  3:
  126.                 print('''     /// \\\\\\
  127.     ///   \\\\\\
  128.    ///     \\\\\\''')
  129.             if legs == 4:
  130.                 print('''     /// \\\\\\
  131.     ///   \\\\\\
  132.    ///     \\\\\\
  133.   ///       \\\\\\''')
  134.             print(shoes + '       ' + shoes) #SHOES #SHOES #SHOES #SHOES #SHOES #SHOES #SHOES #SHOES
  135.         custom()
  136. main() #I tried making custom functions for each of the body parts but it ended up making everything
  137.        #into different chunks and made the character look like Frankenstein with text mixed between
  138.        #his body parts. So, with that said I could only muster out 5 functions to make this code work
  139.        #to it's required potential.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top