4 ms·
I assume you mean the "explosions" on the map? These are canvas elements, put inside a RichMarker. Each canvas element is a small particle generator (this was
by hk_kh 15y ago
I assume you mean the "explosions" on the map?
These are canvas elements, put inside a RichMarker.
Each canvas element is a small particle generator (this was not needed, but somehow bastarized this version (http://scurker.com/projects/particles/ http://scurker.com/projects/particles/), to better control what I wanted to display.
What I still don't like about it, is each canvas having his own timer / update interval. It would feel more homogeneous having a global timer, and updating each canvas element sequentially. In another release I would probably do that, and replace WebSockets with Server Side Events.
I think the code is pretty straightforward, so feel free to dive into it.