added taunts to title screen

This commit is contained in:
Frank DeMarco 2020-10-30 15:29:35 -04:00
parent 03accbe24a
commit bc3894c2d4
25 changed files with 6 additions and 3 deletions

6
NS.py
View File

@ -348,6 +348,10 @@ class Tony(Sprite):
self.load_from_path(self.get_resource("newTony/TonyShirtHead"), True)
self.add_frameset([0], name="static")
self.add_frameset(range(1, len(self.frames)), name="board")
self.taunts = []
for sfx_name in self.get_audio().sfx:
if sfx_name.startswith("TonyTauntsBend_"):
self.taunts.append(sfx_name)
def set_frameset(self, name):
Sprite.set_frameset(self, name)
@ -365,7 +369,7 @@ class Tony(Sprite):
Sprite.shift_frame(self)
frameset = self.get_current_frameset()
if frameset.name == "board" and frameset.current_index == 1:
self.get_audio().play_sfx("comeOn")
self.get_audio().play_sfx(choice(self.taunts))
def update(self):
save = self.get_display_surface()

@ -1 +1 @@
Subproject commit 6c9554a2559d4ae878aeeeb8e356fd8cc3618218
Subproject commit 619a7dab3fe318d162bd747436b4bfd02c1b17bb

View File

@ -19,4 +19,3 @@
237842
171298
198296
142464

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.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.