From a02e976396150c1d8d225b84cd371467b50a3385 Mon Sep 17 00:00:00 2001 From: Diego Ramirez Date: Mon, 10 Jun 2024 19:13:00 -0600 Subject: [PATCH] Fully enable Slimehorns in the game --- src/characters.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/characters.py b/src/characters.py index 2bd48c4..93fcac6 100644 --- a/src/characters.py +++ b/src/characters.py @@ -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. @@ -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)."