MCPcopy Create free account
hub / github.com/OpenDriveLab/DriveAdapter / tick

Method tick

scenario_runner/no_rendering_mode.py:241–244  ·  view source on GitHub ↗
(self, clock)

Source from the content-addressed store, hash-verified

239 self.surface.blit(text_texture, (10, 11))
240
241 def tick(self, clock):
242 delta_seconds = 1e-3 * clock.get_time()
243 self.seconds_left = max(0.0, self.seconds_left - delta_seconds)
244 self.surface.set_alpha(500.0 * self.seconds_left)
245
246 def render(self, display):
247 display.blit(self.surface, self.pos)

Callers

nothing calls this directly

Calls 1

get_timeMethod · 0.80

Tested by

no test coverage detected