iPhone的游戏背景视频或动画形象? [英] The iPhone Game Background as Video or Animated Image?

查看:174
本文介绍了iPhone的游戏背景视频或动画形象?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要为整个iPhone屏幕很短的背景动画。我想弄清楚我是否应该使用视频或动画的一系列PNG文件。
有谁知道使用视频作为背景的​​应用程序,而不是内部的UIImageView被动画系列的PNG文件的优势在哪里?我听说,视频可以融为一体pressed真正体积小会更好看的动画PNG格式。
提前致谢。

I need to create a very short background animation for the entire iPhone screen. I am trying to figure out whether I should use a video or animate a series of PNG files. Does anybody know the advantage of using video as an app background instead of the series of PNG files being animated inside UIImageView? I heard that video can be compressed to really small size and will look better that animated PNGs. Thanks in advance.

推荐答案

我真的不认为使用视频,而不是一系列PNG是个不错的主意。你会让你的生活节省了几千字节更复杂,如果你连保存任何

I really don't think using a video rather than a series of PNG is a good idea. You'll make your life more complicated for a few kilobytes saved, if you even save any.

这当然是高度依赖正是你正在尝试动画,并在您尝试以节省空间。例如,如果你试图以节省内存在二进制,如果你有你的PNG(早已融为一体pressed格式),你就飞解压一个zip,最相似之处将被压缩算法来提取出来。如果你想在游戏本身(而不是二进制)期间保存在内存空间,那么这不计数。不过,加载了视频二进制库有机会严重杂波不是少数PNG图像记忆更不会。

It is of course highly dependent on what exactly you are trying to animate, and where you try to save space. For example, if you try to save memory in the binary and if you have your PNGs (already well compressed format) in a zip that you unzip on the fly, most similarities will be factored out by the zip algorithm. If you're trying to save space in memory during the game itself (not in the binary), then this doesn't count. However, loading up the video library binaries has a serious chance to clutter your memory more than the few PNGs will.

项目做工作以JPG,它应该是很容易改变,与PNG;)

This project does the job with JPG, it should be very easy to change that with PNG ;)

这篇关于iPhone的游戏背景视频或动画形象?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆