I knew I wouldn’t be able to do a great job with multi-touch gestures. Not full transformations, but I was really curious on how difficult they would be. I managed to get a decent translate and scale going, but it was pretty jittery.
I decided that the npm package “nudged” would work perfect for me. I had to do some changes to my event handling system to make it work. Like when the touch set changes, I lock in the current camera matrix so that all transformations with that set are uniform.
The result is pretty nice. If you look close you can see where windows added the touch marks.
That’s one more item done for the TD game.