示例#1
0

# list of backgrounds to cycle through
backgrounds = [
    render_image('backgrounds/ptampons.png', 495, 300),
    render_image('backgrounds/pvanpelt.png', 495, 300),
    render_image('backgrounds/plove.png', 495, 300),
    render_image('backgrounds/plocust.png', 495, 300),
    render_image('backgrounds/phuntsman.png', 495, 300)
]

# creates all pokemon
you = Pokemon('cis student', 100, 'you/you.png', 'you/youb.png',
              'you/youblvl.png', 'you/youw.png', 'you/soylent.png',
              'you/officehours.png', 'you/code.png', 'you/cry.png')
you.add_move('Soylent', 30, 'u chug chocolate soylent',
             'u land a powerful hit! cis student deals 30 damage')
you.add_move('Office Hours', 20, 'u ask OH for help',
             'TAs help u fight! cis student deals 20 damage.')
you.add_move('Code', 1, 'u attempt to use ML to destroy ur opponent',
             'too bad u only know scratch. cis student deals 1 damage.')
you.add_move('Cry', 0, ':\'( being a cis student is difficult',
             'ur opponent shows no pity for u. cis student deals 0 damage.')

tia = Pokemon('tia', 100, 'tia/tia.png', 'tia/tiab.png', 'tia/tiablvl.png',
              'tia/tiaw.png', 'tia/tiktok.png', 'tia/slytherinsnake.png',
              'tia/aiattack.png', 'tia/internshipflex.png')
tia.add_move(
    'Tiktok', 20, 'tia plays her quarantine tiktok video',
    'opponent is mad that they do not have as many tiktok fans as tia. tia deals 20 damage.'
)
tia.add_move('Slytherin Snake', 30, 'tia lets out wharton\'s snake.',