问题
We're building a game in starling, and we want it to be multiplataform, but we found some problems with resolutions,
we have designed the game for iPad, and we want it to run in samsung galaxy tab 10.1 and iPhone, The problem we have in SGT 10.1 is that we want to center the content and add an extra background to fix the black tires in the sides, and in iPhone 4, the content is bigger that the screen...
do you know a way to solve it?
Thanks
回答1:
Here is a link that explains how to develop for multiple resolutions in starling: http://wiki.starling-framework.org/manual/multi-resolution_development
回答2:
If your assets were created from vector graphics, and don't want to stretch the result bitmap. or you don't want to include several texture atlases. There's an open source library that should do the trick: https://github.com/XTDStudios/DMT
This library renders the vector assets according to what you give it, and cache it on the device.
online tutorial: http://goo.gl/6NhQk
来源:https://stackoverflow.com/questions/10520622/starling-game-resolution-in-multiplataform