MCPcopy Create free account
hub / github.com/marblexu/PythonPlantsVsZombies / setupCars

Method setupCars

source/state/level.py:66–70  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

64 self.zombie_list.sort(key=takeTime)
65
66 def setupCars(self):
67 self.cars = []
68 for i in range(self.map_y_len):
69 _, y = self.map.getMapGridPos(0, i)
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

Callers 1

initPlayMethod · 0.95

Calls 1

getMapGridPosMethod · 0.80

Tested by

no test coverage detected