implemented lizard boil graphics

This commit is contained in:
frank 2022-03-10 00:27:25 -05:00
parent 465da72ac9
commit 7d1e049614
1 changed files with 4 additions and 5 deletions

9
NS.py
View File

@ -1723,11 +1723,10 @@ class Chemtrails(Sprite):
@param parent PGFW game object that initialized this object
"""
Sprite.__init__(self, parent)
self.load_from_path(self.get_resource("littleSlimeGoop"), True, query="*.png")
# one frame for each pad orientation
for direction in (NS.N, NS.NE, NS.E, NS.NW, NS.S, NS.W):
self.add_frameset([direction], switch=(direction == NS.N))
Sprite.__init__(self, parent, 42)
for directory in sorted(iglob(join(self.get_resource("littleSlimeGoop"), "[0-9]_*/"))):
self.add_frameset(switch=True)
self.load_from_path(directory, True)
self.life = Life(self)
self.boys = Boys(self)
self.timer = Timer(self)