in4ray / firefly-sdk

Firefly - in4ray Gaming SDK
http://firefly.in4ray.com
Other
54 stars 11 forks source link

View Map as 2D grid #18

Closed VladimirCores closed 10 years ago

VladimirCores commented 10 years ago

Is it possible to use this undecribed component as 2D draggable grid? And can you help me with some examples of using ViewMap?

VladimirCores commented 10 years ago

I make it by using this code case TouchPhase.MOVED: _deltaMovement = touch.getMovement(_gameViewMap); if(_touchedItemCoordinates!=null) _touchedItemCoordinates = null; _gameViewMap.transformationMatrix.translate(_deltaMovement.x, _deltaMovement.y); break;