Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/animated_sprite.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ def __init__(self, settings, screen, images):
self.rect = images[0].get_rect()

# Initially not moving and not falling
self.dx = 0.0
self.dx = 1.15
self.dy = 0.0
self.falling = False
self.falling = True
self.falling_frames = 0
self.dying = False

Expand Down Expand Up @@ -122,4 +122,4 @@ def finish_update(self):
def draw(self):
"""Draws the animated sprite's current frame at its current position on the screen"""
frame_index = self.animations[self.current_animation].get_current_frame()
self.screen.blit(self.images[frame_index], self.rect)
self.screen.blit(self.images[frame_index], self.rect)