Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import threading
- def Interval(function, time):
- event = threading.Event()
- while not event.wait(time):
- function()
- def shipDamage():
- print("Rest -1 to the ship by non-explote balloons")
- Interval(shipDamage, 5)
Add Comment
Please, Sign In to add comment