Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ###
- ###Author: Alec Miller
- ###Description: This code displays three different characters: Adamant Adam, Cunning Chris,
- ### and Joyful Jeff! There is also a 'custom' option to create one of these
- ### slick looking characters for yourself!
- ###
- print('----- AVATAR -----') #Titlescreen
- character = 'Select an Avatar or create your own: \n'
- def main():
- avatar = input(character) #Choose Jeff, Adam, Chris, or Custom for an avatar!
- if avatar == 'exit':
- return
- while avatar != 'custom' and avatar != 'Adam' and avatar != 'Jeff' and avatar != 'Chris' and avatar != 'exit':
- avatar = input('Select an Avatar or create your own: \n')
- if avatar == 'Adam': #Here is Adamant Adam!
- def adam():
- print()
- print(''' ~-~
- /-~-~-\\
- /_______\\___''')
- print(" |'''''''|")
- print(''' | * * |
- | V |
- | ~~~ |
- \_____/
- |-X-|
- 0TTTT|---|TTTT0
- |-X-|
- |-X-|
- |-X-|
- HHHHH
- /// \\\\\\
- /// \\\\\\
- /// \\\\\\
- <|||> <|||>''')
- adam()
- if avatar == 'Chris': #Here is Cunning Chris!
- def chris():
- print()
- print(''' ~-~
- /-~-~-\\
- /_______\\
- |"""""""|
- | U U |
- | V |
- | ~~~ |
- \_____/
- |-X-|
- 0WWWW|---|WWWW0
- |-X-|
- HHHHH
- /// \\\\\\
- /// \\\\\\
- /// \\\\\\
- /// \\\\\\
- <>-<> <>-<>''')
- chris()
- if avatar == 'Jeff': #And Here is joyful Jeff!
- def jeff():
- print()
- print(''' ~-~
- /-~-~-\\
- ___/_______\\___
- |"""""""|
- | 0 0 |
- | V |
- | ~~~ |
- \_____/
- 0====|---|====0
- |-X-|
- |-X-|
- HHHHH
- /// \\\\\\
- /// \\\\\\
- #HHH# #HHH#''')
- jeff()
- if avatar == 'custom':
- def custom():
- i = 1
- print('Answer the following questions to create a custom avatar')
- hat_direction = input('Hat style ? \n') #This is used for the direction of the hat.
- eyes = input('Character for eyes ? \n') #Get the symbol for the eyes.
- hair_type = input('Shaggy hair (True/False) ? \n') #Shaggy hair or nah?
- arms = input('Arm style ? \n') #Get what the arms should look like.
- torso = int(input('Torso length ? \n')) #How long is this freak of nature?
- legs = int(input('Leg length (1-4) ? \n')) #How lengthy should the legs be?
- shoes = input('Shoe look ? \n') #Does he have Jordans or Sketchers?
- print()
- if hat_direction == 'right': #HAT #HAT #HAT #HAT #HAT #HAT #HAT #HAT #HAT #HAT #HAT #HAT
- print(''' ~-~
- /-~-~-\\
- /_______\\___''')
- if hat_direction == 'both':
- print(''' ~-~
- /-~-~-\\
- ___/_______\\___''')
- if hat_direction == 'left':
- print(''' ~-~
- /-~-~-\\
- ___/_______\\''')
- if hat_direction == 'front':
- print(''' ~-~
- /-~-~-\\
- /_______\\''')
- if hair_type == 'True': #HAIR #HAIR #HAIR #HAIR #HAIR #HAIR #HAIR #HAIR #HAIR #HAIR #HAIR
- print(' |"""""""|')
- if hair_type == 'False':
- print(" |'''''''|")
- print(' | ' + eyes + ' ' + eyes + ' |')
- print(''' | V |
- | ~~~ |
- \_____/''')
- print(' 0' + arms + arms + arms + arms + '|---|' + arms + arms + arms + arms +'0') #ARMS
- #ARMS #ARMS #ARMS #ARMS #ARMS #ARMS ^^^^^^^^^^^^^^^^^^ ARMS ^^^^^^^^^^^^^^^^^^^^^^^^^
- while torso >= i: #TORSO #TORSO #TORSO #TORSO #TORSO #TORSO #TORSO #TORSO #TORSO #TORSO
- print(' |-X-|')
- i += 1
- print(' HHHHH')
- if legs == 1: #LEGS #LEGS #LEGS #LEGS #LEGS #LEGS #LEGS #LEGS #LEGS #LEGS #LEGS #LEGS #LEGS
- print(' /// \\\\\\')
- if legs == 2:
- print(''' /// \\\
- /// \\\\\\''')
- if legs == 3:
- print(''' /// \\\\\\
- /// \\\\\\
- /// \\\\\\''')
- if legs == 4:
- print(''' /// \\\\\\
- /// \\\\\\
- /// \\\\\\
- /// \\\\\\''')
- print(shoes + ' ' + shoes) #SHOES #SHOES #SHOES #SHOES #SHOES #SHOES #SHOES #SHOES
- custom()
- main() #I tried making custom functions for each of the body parts but it ended up making everything
- #into different chunks and made the character look like Frankenstein with text mixed between
- #his body parts. So, with that said I could only muster out 5 functions to make this code work
- #to it's required potential.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement