MCPcopy Index your code
hub / github.com/geekcomputers/Python / draw

Method draw

Street_Fighter/src/fighter.py:200–208  ·  view source on GitHub ↗
(self, surface)

Source from the content-addressed store, hash-verified

198 self.update_time = pygame.time.get_ticks()
199
200 def draw(self, surface):
201 img = pygame.transform.flip(self.image, self.flip, False)
202 surface.blit(
203 img,
204 (
205 self.rect.x - (self.offset[0] * self.image_scale),
206 self.rect.y - (self.offset[1] * self.image_scale),
207 ),
208 )

Callers 1

game_loopFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected