Skip to content

Commit

Permalink
Enable clouds scale adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
DiddiLeija committed Sep 5, 2024
1 parent d9e6529 commit 7bdfeb4
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 @@ -505,6 +505,7 @@ def __init__(self, x, y, draw_x, draw_y):
self.draw_y = draw_y
self.alive = True
self.speed = random.randint(2, 3)
self.size = random.choice([1, 1.5, 2])

def update(self):
self.x -= self.speed
Expand All @@ -515,7 +516,7 @@ def draw(self):
if not self.alive:
return
# NOTE: Clouds are all stored at resource image 1, take that in count!
pyxel.blt(self.x, self.y, 1, self.draw_x, self.draw_y, 16, 16, 0)
pyxel.blt(self.x, self.y, 1, self.draw_x, self.draw_y, 16, 16, 0, scale=self.size)


# === Button ===
Expand Down

0 comments on commit 7bdfeb4

Please sign in to comment.