A very simple gravity sim written in Typescript using a HTML Canvas as the visulizer.
- Use your mouse to spawn particles
- Watch them fall
- Advanced unused particle cleaning system(
if(y < 0){ DestroyParticle(); }
)
- Clone the repo
- Run
yarn
ornpm i
(This will download the dependencies) - Run
yarn dev
ornpm run dev
to compile the typescript. (The compiled JS gets outputed intopublic/js
) - Open
public/index.html
with a browser of your choice.