Starling game resolution in multiplataform

…衆ロ難τιáo~ 提交于 2020-01-03 04:18:11

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!