<bdo id='YQQBV'></bdo><ul id='YQQBV'></ul>

    <legend id='YQQBV'><style id='YQQBV'><dir id='YQQBV'><q id='YQQBV'></q></dir></style></legend>
    <tfoot id='YQQBV'></tfoot>
    <i id='YQQBV'><tr id='YQQBV'><dt id='YQQBV'><q id='YQQBV'><span id='YQQBV'><b id='YQQBV'><form id='YQQBV'><ins id='YQQBV'></ins><ul id='YQQBV'></ul><sub id='YQQBV'></sub></form><legend id='YQQBV'></legend><bdo id='YQQBV'><pre id='YQQBV'><center id='YQQBV'></center></pre></bdo></b><th id='YQQBV'></th></span></q></dt></tr></i><div id='YQQBV'><tfoot id='YQQBV'></tfoot><dl id='YQQBV'><fieldset id='YQQBV'></fieldset></dl></div>
  1. <small id='YQQBV'></small><noframes id='YQQBV'>

      如何实现高清“Retina Display"Cocos2D 中的图形

      时间:2024-08-12
      <i id='AsaPt'><tr id='AsaPt'><dt id='AsaPt'><q id='AsaPt'><span id='AsaPt'><b id='AsaPt'><form id='AsaPt'><ins id='AsaPt'></ins><ul id='AsaPt'></ul><sub id='AsaPt'></sub></form><legend id='AsaPt'></legend><bdo id='AsaPt'><pre id='AsaPt'><center id='AsaPt'></center></pre></bdo></b><th id='AsaPt'></th></span></q></dt></tr></i><div id='AsaPt'><tfoot id='AsaPt'></tfoot><dl id='AsaPt'><fieldset id='AsaPt'></fieldset></dl></div>

        <bdo id='AsaPt'></bdo><ul id='AsaPt'></ul>
      • <small id='AsaPt'></small><noframes id='AsaPt'>

              <tbody id='AsaPt'></tbody>

              • <legend id='AsaPt'><style id='AsaPt'><dir id='AsaPt'><q id='AsaPt'></q></dir></style></legend><tfoot id='AsaPt'></tfoot>
                本文介绍了如何实现高清“Retina Display"Cocos2D 中的图形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我不太确定如何在 cocos2d 中将高清图像用于精灵.我查看了文档,并下载了支持点而不是像素的最新测试版,但我不明白整个 -hd 后缀的想法.换句话说,我需要帮助,但不知道如何在我的 cocos2d 游戏中使用视网膜质量的图形.我觉得这很简单,但是我找不到任何关于这样做的东西.任何帮助将不胜感激.

                I am not quite sure how use HD images for sprites in cocos2d. I looked through the documentation, and downloaded the newest beta which supports points instead of pixels, but I don't understand the whole -hd suffix idea. In other word I need help and have no idea how to use retina quality graphics in my cocos2d game. I feel that it is very simple, but I cannot find anything on doing this. Any help would be greatly appreciated.

                好吧,也许这要求太多了,但是如果有人能给我代码告诉我把它放在哪里,那将非常有帮助.(这可能问得太多了)但如果它是一条线或太多,如果你能发布它会很棒.我在这里完全一无所知.我尝试过的一件事是设置内容比例因子.图像是高清的,但在第 4 代 iPod touch 上,fps 下降到 12fps 左右.这个我真的不明白.

                Ok so maybe this is asking too much but, it would be very helpful if someone could give me the code a tell me where to put it. (Thats probably too much to ask) But if it is a line or too, it would be great if you could post it. I am absolutely clueless here. One thing I did try, was to set the content scale factor. The image was hi-def, but the fps went way down to around 12fps on an iPod touch 4th gen. I really do not understand this.

                谢谢,

                泰特

                推荐答案

                如果您使用的是最新的测试版,您唯一需要做的更改就是以两倍大小导出所有图像并使用-hd"后缀,类似于 Apple 的@2x".文档还说您需要设置导演的内容比例因子,但就我而言,我似乎不需要这样做.

                If you're using the latest beta, the only change you should need to make is export all your images at twice the size and use the "-hd" suffix, similar to Apple's "@2x". The documentation also says you need to set the content scale factor of the director, but in my case I didn't seem to need to do that.

                虽然听起来您已经阅读过,但我将链接到 文档希望有人能从中受益.

                Though it sounds like you've already read through it, I'll link to the documentation in hopes that someone will benefit.

                这篇关于如何实现高清“Retina Display"Cocos2D 中的图形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:两条线之间的角度是错误的 下一篇:如何检测音效何时播放完毕?

                相关文章

                1. <small id='Xu9FM'></small><noframes id='Xu9FM'>

                  <tfoot id='Xu9FM'></tfoot>
                  <i id='Xu9FM'><tr id='Xu9FM'><dt id='Xu9FM'><q id='Xu9FM'><span id='Xu9FM'><b id='Xu9FM'><form id='Xu9FM'><ins id='Xu9FM'></ins><ul id='Xu9FM'></ul><sub id='Xu9FM'></sub></form><legend id='Xu9FM'></legend><bdo id='Xu9FM'><pre id='Xu9FM'><center id='Xu9FM'></center></pre></bdo></b><th id='Xu9FM'></th></span></q></dt></tr></i><div id='Xu9FM'><tfoot id='Xu9FM'></tfoot><dl id='Xu9FM'><fieldset id='Xu9FM'></fieldset></dl></div>

                  1. <legend id='Xu9FM'><style id='Xu9FM'><dir id='Xu9FM'><q id='Xu9FM'></q></dir></style></legend>

                    • <bdo id='Xu9FM'></bdo><ul id='Xu9FM'></ul>