summary refs log tree commit diff stats
path: root/libs/FontLabel/ZFont.m
diff options
context:
space:
mode:
authorStarla Insigna <starla4444@gmail.com>2011-08-17 20:29:16 -0400
committerStarla Insigna <starla4444@gmail.com>2011-08-17 20:29:16 -0400
commit6b9c8afd0e4a49efffd504378f1db34264928250 (patch)
tree7a3a64517344406c56b174f04fb19e0374f13398 /libs/FontLabel/ZFont.m
parent4d94802036a53e6ec246ab0abac17fd76d17c885 (diff)
downloadcartcollect-6b9c8afd0e4a49efffd504378f1db34264928250.tar.gz
cartcollect-6b9c8afd0e4a49efffd504378f1db34264928250.tar.bz2
cartcollect-6b9c8afd0e4a49efffd504378f1db34264928250.zip
Improved jumping gesture detection
Previously, when determining if the player had swiped upward for a jump in the Jump game mode, the game checked that the player had touched and moved upward a certain amount, with less than a certain amount of variance in horizontal position. However, this did not work well with the deeply-ingrained rotation aspect of the game, so the game was programmed to widen this allowed horizontal variance when the device was rotated. This really did not work too well, so now the game calculates an "expected" angle from the bottom of the screen based on rotation that it determines to point upward and also the angle of the player's swipe from the bottom of the screen. If the swipe angle falls within 45 degrees (π/4 radians) of the expected angle, the cart jumps. Really quite awesome if you ask me. :P

Refs #204
Diffstat (limited to 'libs/FontLabel/ZFont.m')
0 files changed, 0 insertions, 0 deletions