Playing around with phonegap/cordova some more for the heck of it. I had a few games/experiments lying around from a "see what I can code up in two hours or less" self-challenge from long ago, and I tried porting one of them to a touch interface:
(
Read more... )
Comments 1
1) I'm moving my mouse in R2 which is normalized to a unit vector. This means theres a singularity in the middle of my screen, and I have to maintain correct absolute position (which is harder with mouse than with touchscreen, though I know the mouse wasn't the core user).
2) The unit vector is used for an acceleration. Controlling acceleration isn't evil, but it can be tricky, and I think in this game (handwave) doesn't fit as well as controlling velocity; the discrete game was controlling a unit velocity.
Are these Working As Intended? If you want to fiddle around, control unit velocity by the instantaneous velocity vector of the mouse's last motion, or of the last touchscreen swipe?
Reply
Leave a comment