K
krugen
Guest
In clash of clan, you can
1) drag past the village for a finite distance. And the further you go into that finite distance, the harder it seems to pull further.
2) once you reach the limit, the view will bounce slightly back into the village but not all the way back to the limit.
village size is 640 x 360
extra area for the effect result in total: 660 x 380
when u reach 660 or 380 or both, the screen will bounce back in the opposite direction for 10 px once you release the finger
How to achieve that kind of panning for programming mobile? Assume there is no zooming available.
1) drag past the village for a finite distance. And the further you go into that finite distance, the harder it seems to pull further.
2) once you reach the limit, the view will bounce slightly back into the village but not all the way back to the limit.
village size is 640 x 360
extra area for the effect result in total: 660 x 380
when u reach 660 or 380 or both, the screen will bounce back in the opposite direction for 10 px once you release the finger
How to achieve that kind of panning for programming mobile? Assume there is no zooming available.