All pastes #366619 Raw Edit

Siegel

public python v1 · immutable
#366619 ·published 2007-02-21 20:05 UTC
rendered paste body
import 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)