冰车僵尸可变速
This commit is contained in:
parent
8eaf9e1fde
commit
625658202a
@ -1713,6 +1713,7 @@ class FumeShroom(Plant):
|
|||||||
else:
|
else:
|
||||||
self.image.set_alpha(255)
|
self.image.set_alpha(255)
|
||||||
|
|
||||||
|
|
||||||
class IceFrozenPlot(Plant):
|
class IceFrozenPlot(Plant):
|
||||||
def __init__(self, x, y):
|
def __init__(self, x, y):
|
||||||
Plant.__init__(self, x, y, c.ICE_FROZEN_PLOT, c.INF, None)
|
Plant.__init__(self, x, y, c.ICE_FROZEN_PLOT, c.INF, None)
|
||||||
|
|||||||
@ -1008,3 +1008,5 @@ class Zomboni(Zombie):
|
|||||||
x, y = self.map.getMapGridPos(mapX, mapY)
|
x, y = self.map.getMapGridPos(mapX, mapY)
|
||||||
self.plant_group.add(self.IceFrozenPlot(x, y))
|
self.plant_group.add(self.IceFrozenPlot(x, y))
|
||||||
self.map.map[mapY][mapX][c.MAP_PLANT].add(c.ICE_FROZEN_PLOT)
|
self.map.map[mapY][mapX][c.MAP_PLANT].add(c.ICE_FROZEN_PLOT)
|
||||||
|
|
||||||
|
self.speed = max(0.6, 1.5 - (c.GRID_X_LEN - mapX)*0.225)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user