# Game ended def myHandler(event): click() event.region.stopObserver() #stop the observation # Game didn't end def myHandler2(event): click(
) event.region.stopObserver() #stop the observation # Main function for x in range(50, 300): # waiting the game to begin wait(5) #launch bird t = find(
) dragDrop(t, [t.x - 150, t.y + x]) # waiting for map destruction ;-) wait(30) #restart game onAppear(
, myHandler) onAppear(
, myHandler2) observe(20)