更改透明度设定,压缩音乐体积
This commit is contained in:
parent
b1941820c6
commit
e9460229fe
@ -3,7 +3,7 @@
|
||||
"init_sun_value":5000,
|
||||
"shovel":1,
|
||||
"zombie_list":[
|
||||
{"time":1000, "map_y":2, "name":"NewspaperZombie"},
|
||||
{"time":1000, "map_y":2, "name":"BucketheadZombie"},
|
||||
{"time":60000, "map_y":2, "name":"Zombie"}
|
||||
]
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -191,7 +191,7 @@ class Plant(pg.sprite.Sprite):
|
||||
|
||||
self.image = self.frames[self.frame_index]
|
||||
if ((self.current_time - self.hit_timer) < 200) or (self.current_time - self.highlightTime < 200):
|
||||
self.image.set_alpha(192)
|
||||
self.image.set_alpha(150)
|
||||
else:
|
||||
self.image.set_alpha(255)
|
||||
|
||||
|
||||
@ -182,7 +182,7 @@ class Zombie(pg.sprite.Sprite):
|
||||
if (self.current_time - self.hit_timer) >= 200:
|
||||
self.image.set_alpha(255)
|
||||
else:
|
||||
self.image.set_alpha(192)
|
||||
self.image.set_alpha(150)
|
||||
|
||||
def getTimeRatio(self):
|
||||
return (self.ice_slow_ratio / self.speed) # 目前的机制为:冰冻减速状态与自身速度共同决定行走的时间间隔
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user