
ParticleSystem in Canvas / HTML5 / Javascript
Recently tried HTML5 / Canvas / JavaScript. I rewrote with C ++ / OpenGL a simple particle system from my old game - gamediameter.sourceforge.net .
You can see what happened here: mjv-art.org/files/WebDiameter .
By default, there are 60 particles and they are oriented in the direction of the mouse cursor. In addition, the FPS value is displayed.
In fact, the biggest problem was mathematics, I couldn’t find a library for working with Vectors for JavaScript on the go. While writing his own and primitive.
You can see what happened here: mjv-art.org/files/WebDiameter .
By default, there are 60 particles and they are oriented in the direction of the mouse cursor. In addition, the FPS value is displayed.
In fact, the biggest problem was mathematics, I couldn’t find a library for working with Vectors for JavaScript on the go. While writing his own and primitive.