Just completed extensive updates to the minigame. Previously, there we issues with orb collection. These issues were related to having the move and collection functions built into a single case. I've separated these cases into their own and used react-redux to optimize the game play. The other error I notice is pickup locations. So I started tracking the distance between the orb and the pet. This showed me that I had the two coordinate systems were not aligned properly. I adjusted this and created an offset.
This was helpful as reference:
https://github.com/Aklilu-Mandefro/game-application-using-react-and-typescript
https://react-redux.js.org/introduction/getting-started
In the future, I think I will start on this path for a web-based mini game.
Log in or sign up for Devpost to join the conversation.