Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load animations of stationary sprites #25

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

kevinzshen
Copy link
Collaborator

@kevinzshen kevinzshen commented Dec 1, 2022

Created the Key sprite and its different frames. Uploaded the sprite sheets for the Shopkeeper and all the different potions. Created StaticAnimatedSprite superclass with subclasses Potion, Key, and Shopkeeper to significantly reduce redundant/repeated code for animating various different sprites. Different types of Potions can now be animated/loaded by passing in a potion_type argument when instantiating a Potion. Additionally, there is now a Purchasable interface which should help establish a foundation of clean code that follows SOLID principles that we can continue building off.

@kevinzshen
Copy link
Collaborator Author

Code regarding item pickup is still a little buggy and needs to be improved.

@kevinzshen kevinzshen changed the title Loaded animations for all stationary sprites and created StaticAnimatedSprite superclass with subclasses Potion, Key, and Shopkeeper. Also created a Purchasable interface. Load animations of stationary sprites Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant