Android Question Problems with zooming in my game engine

geewiztech

Member
Licensed User
Longtime User
I have a problem when trying to implement pinch zooming in my app. The source code can be found here http://www.geewiztech.com/download/firstColony.rar

The problem is that although the assets all zoom correctly the world co-ordinates don't. (If you run the app you will see what I mean) I've been rehashing this for about 3 weeks now, you can see by the code that its a total mess because of all the changes and updates I've done trying to get this to work, I'm stuck and any help/advice would be very welcome.
 

Informatix

Expert
Licensed User
Longtime User
I have a problem when trying to implement pinch zooming in my app. The source code can be found here http://www.geewiztech.com/download/firstColony.rar

The problem is that although the assets all zoom correctly the world co-ordinates don't. (If you run the app you will see what I mean) I've been rehashing this for about 3 weeks now, you can see by the code that its a total mess because of all the changes and updates I've done trying to get this to work, I'm stuck and any help/advice would be very welcome.
In the real world, the latitude and longitude of a town never change. It's the same in a game for world coordinates. When you locate an unit at coordinates 1,5 (first column, fifth row of your tiled map), you expect that these coordinates will stay the same whatever the zoom factor is. The problem is elsewhere. Are you sure that your map renderer and your sprite batcher use the same coordinate system? The same unit scale?
 
Upvote 0
Top