(no title)
elliottcarlson | 1 year ago
I added an easter egg on the website, that when you click on the chest in the footer, it follows the mouse in a similar way it would within the game -- it keeps a safe distance from the mouse to prevent interfering with it, and will repel away to that distance when moving the mouse towards it.
https://codesandbox.io/p/sandbox/floating-chest-k33n63 for a React component that implements this functionality.
No comments yet.