๐ฑ Context
While working on my Spider Solitaire game in React (play it here ๐ท๏ธ๐ฎ), I had an idea for the โarcade menuโ: representing a dynamic spider web ๐ธ๏ธ where a spider moves around and eats insects ๐. Each insect would represent a game level.
The goal was to create a living, interactive menu instead of a simple static level list.
๐ The Discovery
While looking for a way to simulate this, I stumbled upon this project: subprotocol.com/system/spider.html.
It was exactly what I had in mind ๐คฏ!
But after checking the GitHub repo, I quickly noticed some issues:
- The last update was in 2013 (almost 12 years ago!)
- The code is interesting but not compatible with modern JavaScript syntax
- No integration with React or TypeScript
๐ ๏ธ The Decision
Instead of reinventing the wheel, I decided to fork the Verlet.js project and:
- Update the codebase to modern JavaScript
- Add TypeScript support
- Create a React wrapper so React developers can easily integrate Verlet.js into their projects
๐ฆ The Project Today
๐ GitHub repo: https://github.com/Franklin-hyriol/verletjs
๐ Available on npm:
npm install verlet-react verlet-engine
๐ You can try it out right now!
โ ๏ธ For now, this is version 1.0:
- No new features have been added yet
- Itโs simply the original library updated with TypeScript and React support
๐ Documentation is still in progress, so not fully available yet โ but itโs coming soon!
๐ฎ Next Steps
Planned improvements include:
- Adding more objects
- Collision handling
- Gravity
- Wind and other physics interactions
- And much moreโฆ
๐ค Contributions
All contributions are welcome ๐
Whether itโs adding new features, improving the code, or helping with docs, feel free to open an issue or a PR.
Top comments (0)