Top Down Camera for touch screens

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By TobiLa

Hey, I want to implement a top-down camera as used in games like SimCity etc.

The game will be for mobile, so the camera needs to be controlled by touchscreen drags.

As an extension I will may need a zoom gesture.

I thought this would be a common concept and it should have been done somewhere, but I couldn’t find any tutorial or example code.

Do you know any example code or do you have any tips on how to go about this?