MCPcopy Create free account
hub / github.com/AdaCompNUS/summit / on_world_tick

Method on_world_tick

PythonAPI/examples/automatic_control.py:212–216  ·  view source on GitHub ↗
(self, timestamp)

Source from the content-addressed store, hash-verified

210 self._server_clock = pygame.time.Clock()
211
212 def on_world_tick(self, timestamp):
213 self._server_clock.tick()
214 self.server_fps = self._server_clock.get_fps()
215 self.frame = timestamp.frame
216 self.simulation_time = timestamp.elapsed_seconds
217
218 def tick(self, world, clock):
219 self._notifications.tick(world, clock)

Callers

nothing calls this directly

Calls 2

get_fpsMethod · 0.80
tickMethod · 0.45

Tested by

no test coverage detected