Пример #1
0
    def tick(self):
        if land.keyboard.pressed(land.keyboard.ESC) or land.closebutton():
            land.quit()
        w = 640 / 32
        h = 480 / 32

      
        for k in range(w * h):
            x, y = self.jitter[k]
            self.jitter[k] = (x + random.random() - 0.5, y + random.random() - 0.5)
Пример #2
0
 def tick(self):
     if land.keyboard.pressed(land.keyboard.ESC) or land.closebutton():
         land.quit()