更改南瓜头动作间隔
This commit is contained in:
parent
ef7ab50fb2
commit
6512853932
@ -1814,7 +1814,7 @@ class PumpkinHead(Plant):
|
|||||||
self.load_images()
|
self.load_images()
|
||||||
self.cracked1 = False
|
self.cracked1 = False
|
||||||
self.cracked2 = False
|
self.cracked2 = False
|
||||||
self.animate_interval = 140
|
self.animate_interval = 160
|
||||||
|
|
||||||
def load_images(self):
|
def load_images(self):
|
||||||
self.cracked1_frames = []
|
self.cracked1_frames = []
|
||||||
|
|||||||
@ -234,4 +234,4 @@ PLANT_RECT = loadPlantImageRect()
|
|||||||
# 播放音乐
|
# 播放音乐
|
||||||
pg.mixer.init()
|
pg.mixer.init()
|
||||||
pg.mixer.music.load(os.path.join(os.path.dirname(os.path.dirname(__file__)) ,"resources", "music", "intro.opus"))
|
pg.mixer.music.load(os.path.join(os.path.dirname(os.path.dirname(__file__)) ,"resources", "music", "intro.opus"))
|
||||||
pg.mixer.music.play(-1, 0)
|
pg.mixer.music.play(-1, 0)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user