This PR implements a new feature where the player character performs a "RightHook" animation when the user selects the "Harvest" option on a BerryTree. It includes changes in the state management to introduce a new state for "userHarvesting" and modifications in the PlayerController and BerryTree components to handle this new state and trigger the animation when the player is in range of the tree.
Summary of Changes
Added a new state "userHarvesting" in the store.js file to track if the user has selected the "Harvest" option.
Modified the onClick function in BerryTree.tsx to set the "userHarvesting" state to true when the "Harvest" option is selected.
Modified the PlayerController.tsx file to check the "userHarvesting" state and play the "RightHook" animation when the player is in range of the BerryTree.
Please review and merge these changes to enable the Harvest animation for the BerryTree.
Fixes #3.
🎉 Latest improvements to Sweep:
Getting Sweep to run linters before committing! Check out Sweep Sandbox Configs to set it up.
Added support for self-hosting! Check out Self-hosting Sweep to get started.
[Self Hosting] Multiple options to compute vector embeddings, configure your .env file using VECTOR_EMBEDDING_SOURCE
💡 To get Sweep to edit this pull request, you can:
Leave a comment below to get Sweep to edit the entire PR
Leave a comment in the code will only modify the file
Edit the original issue to get Sweep to recreate the PR from scratch
PR Feedback (click)
Description
This PR implements a new feature where the player character performs a "RightHook" animation when the user selects the "Harvest" option on a BerryTree. It includes changes in the state management to introduce a new state for "userHarvesting" and modifications in the PlayerController and BerryTree components to handle this new state and trigger the animation when the player is in range of the tree.
Summary of Changes
Please review and merge these changes to enable the Harvest animation for the BerryTree.
Fixes #3.
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can: