CameronJung / ChopperTankFlak

A simple rock-paper-scissors strategy game
0 stars 0 forks source link

Touch screen compatible map panning #26

Closed CameronJung closed 2 months ago

CameronJung commented 3 months ago

Currently the map pans when the cursor is near the edge of the map panel. Touch screen devices don't have a cursor, therefore a new method will need to be used.

CameronJung commented 3 months ago

The simplest thing to do would be to add a frame of buttons around the map frame that pan the map when pressed.

CameronJung commented 3 months ago

Ideally, a two finger swipe should be used. Since this is how map applications pan on mobile devices this should be intuitive.

CameronJung commented 3 months ago

My current plan for this is to rework the click handler to handle touch input. This approach will create a smell, since the name of the script will no longer be accurate.