AlexeySapsay / Python_solution_CodeCombat_2018

In that repository I will post my sollution for codecombat.com games for study Python
1 stars 0 forks source link

Fast and Furry-ous #105

Open AlexeySapsay opened 6 years ago

AlexeySapsay commented 6 years ago
# Follow me on youtube  channel Phy Tu
# Help with programming on Python, school math, physics
# https://www.youtube.com/channel/UCP5ycahCEZ24qmRRgNnko5Q

# Use an event handler so pet and hero will both run!

def petMove():
    pet.moveXY(50, 21)

# Use pet.on("spawn", petMove) instead of petMove().
# This way your hero and pet will run at the same time.
#petMove() # ∆ Replace this with pet.on("spawn", petMove)

pet.on("spawn",petMove)
hero.moveXY(50, 12)