MCPcopy Index your code
hub / github.com/marblexu/PythonPlantsVsZombies / update

Method update

source/state/level.py:72–79  ·  view source on GitHub ↗
(self, surface, current_time, mouse_pos, mouse_click)

Source from the content-addressed store, hash-verified

70 self.cars.append(plant.Car(-25, y+20, i))
71
72 def update(self, surface, current_time, mouse_pos, mouse_click):
73 self.current_time = self.game_info[c.CURRENT_TIME] = current_time
74 if self.state == c.CHOOSE:
75 self.choose(mouse_pos, mouse_click)
76 elif self.state == c.PLAY:
77 self.play(mouse_pos, mouse_click)
78
79 self.draw(surface)
80
81 def initBowlingMap(self):
82 print('initBowlingMap')

Callers 1

playMethod · 0.45

Calls 3

chooseMethod · 0.95
playMethod · 0.95
drawMethod · 0.95

Tested by

no test coverage detected