MCPcopy Create free account
hub / github.com/ActiveState/code / Tick

Method Tick

recipes/Python/578808_Python_Game_of_Life/recipe-578808.py:190–200  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

188
189
190 def Tick(self):
191 # updates to player location and animation frame
192 self.ttime = self.clock.tick()
193 self.mpos = pygame.mouse.get_pos()
194 self.keys_pressed = pygame.key.get_pressed()
195 if self.running:
196 self.generation +=1
197 self.Run()
198 else:
199 self.generation = 0
200 self.population = 0
201
202
203 def Draw(self):

Callers 1

LoopMethod · 0.95

Calls 2

RunMethod · 0.95
tickMethod · 0.45

Tested by

no test coverage detected