These are chat archives for pixijs/pixi.js

2nd
Jul 2018
schoening
@schoening
Jul 02 2018 08:17
Hi, I am trying to get the "pointerover" event to trigger / check when I move a sprite with my keyboard and not move the mouse. How would I do that?
Ivan Popelyshev
@ivanpopelyshev
Jul 02 2018 09:41
Congratulations! You reached "make your own InteractionManager or just a patch" area.
here is explanation on how to patch functions in it: https://github.com/pixijs/pixi.js/wiki/v4-Gotchas#interaction
schoening
@schoening
Jul 02 2018 09:48
Thanks! I just looked at the interaction manager and got some hacky thing working using the hitTest in my keyboard loop and storing the pointerposition on mousemove. Thanks for the links!
Not that performance matters but I suppose it would be better to just use the interaction manager if all my sprites use the same event function anyways? @ivanpopelyshev
Ivan Popelyshev
@ivanpopelyshev
Jul 02 2018 09:49
i dont know, its up to you =^_^=
Aaron Brewer
@spaceribs
Jul 02 2018 12:25
Hey guys, wanted to share a PoC I did last week for storing coordinates, something to mull over at least: https://github.com/spaceribs/numbmap
The benchmarks of this approach compared to the nieve implementation was about 20% better
*naive
Aaron Brewer
@spaceribs
Jul 02 2018 12:35
This would be an especially good storage implementation for procedurally generated worlds, I'm working on a transport format to/from JSON in the issues