Siegel
public python v1 · immutableimport Rasterizerimport GameLogicfrom threading import Threadfrom random import randomfrom time import sleep# COMPARE THE OUTPUT OF REPEATED RUNS OF THIS PROGRAMdef drop(): sleep(0.01) cont = GameLogic.getCurrentController() obj = cont.getOwner() sep = "game" num = str(obj.counter)[1:] filename = sep+num Rasterizer.makeScreenshot(filename) obj.counter += 1thr1 = Thread(target=drop, args=("+",))thr2 = Thread(target=drop, args=("-",))thr1.start()thr2.start()drop()#sleep(3.0)