Skip to content

Commit

Permalink
Fully enable Slimehorns in the game
Browse files Browse the repository at this point in the history
  • Loading branch information
DiddiLeija committed Jun 11, 2024
1 parent c0c01c1 commit a02e976
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/characters.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ def __init__(self, x, y, yzero=None, variant=False):
# "yzero" here, but in case we consider adding a
# Slimehorn movement feature in the future, I added it here.
self.yzero = yzero
self.alive = True

def update(self):
# TODO: By now, Slimehorns won't move.
Expand All @@ -377,7 +378,7 @@ def draw(self):
if not self.alive:
return
combo = self.imgs[0] if self.variant else self.imgs[1]
pyxel.blt(self.x, self.y, 0, combo[0], combo[2], 8, 8, 0)
pyxel.blt(self.x, self.y, 0, combo[0], combo[1], 8, 8, 0)

class Slimehorn1(SlimehornBase):
"Mobs that stick to a surface (Down)."
Expand Down

0 comments on commit a02e976

Please sign in to comment.