Mixing Vorple with p5.js

I’m attempting to make a game in p5.js that also has some parser IF segments. I’ve got a simple demo of vorple and p5 running in the same page, with simple hooks to switch back and forth on player action. However, “player action” seems to be very unreasonably constrained by some odd choices in Vorple — not only does it eat all letter keys (which I think might be fixable via an input filter?), it also eats all mouse input, which is very confusing to me, since the docs don’t mention anything about it and I don’t really see what it wants to do with it. The non-IF portions of the game are mouse-driven, so this is obviously a problem.

Does anyone know how to work around this, short of opening up vorple.min.js and ripping out the mouse event listener?

1 Like