https://github.com/bbmoz/comet
Comet fun
https://github.com/bbmoz/comet
Last synced: 11 months ago
JSON representation
Comet fun
- Host: GitHub
- URL: https://github.com/bbmoz/comet
- Owner: bbmoz
- License: mit
- Created: 2015-04-22T02:53:21.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-05-19T04:53:33.000Z (about 11 years ago)
- Last Synced: 2025-07-05T23:37:33.379Z (12 months ago)
- Language: JavaScript
- Homepage:
- Size: 203 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Comet
Spawn comets that can consume DOM elements and can react to the "gravitational" pulls of these elements.
Despite this being a fun simulation, it conveys the color scheme of a specific web page as well as greater emphasis placed on certain DOM elements over others.
TODO
- [DONE] Spawn comet in DOM (user clicks location)
- [DONE] Multiple comets can be spawned
- User can right click on a comet to remove it from the DOM
- Comet is attracted by "large" elements and moves automatically
- Comet consumes colliding elements
- grows in size but also slows down (comet can eventually stop due to a slow speed and opposing forces of "gravity" from different elements)
- comet trail becomes more colorful based off the consumed elements' colors