加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

FlashPlayer11新特性 Sprite Sheets

发布时间:2020-12-15 06:47:41 所属栏目:百科 来源:网络整理
导读:TexturePacker – the best sprite sheet maker available TexturePacker is the best sprite sheet maker available for MacOS and Windows. It reads a directory and adds all image files (png,bmp,gif,jpg.) – and with the next update even frames f

TexturePacker – the best sprite sheet maker available

TexturePacker is the best sprite sheet maker available for MacOS and Windows. It reads a directory and adds all image files (png,bmp,gif,jpg.) – and with the next update even frames from Flash .swf files – to a sprite sheet which you can export to png,jpg. It also allows image optimization for iPhone/iPod/iPad – exporting PowerVR’s native pvr file format.

Many different settings allow you to optimize the sprite sheet you are making – e.g. by removing transparent pixels and allowing you to create an even better packing ratio. Padding can be added to avoid artifacts and much more.

This sprite sheet maker is not restricted to equal sized sprites like many are. You can pack any image size you want. The optimized max rects algorithm will give you good results – no matter what sprites you have to pack.

How sprite sheets can speed up your 2d and 3d games

When starting to develop a game you need a big amount of image data. For a 3d game this is the texture data that is projected on an object’s surface – for a 2d game these are simply the objects and characters that bring your game to live.

In both cases many images are required. While it is working at the beginning to use single images it has several disadvantages:

  • Single files take a much more time to load
  • When drawing the sprites on the screen the graphics processor must switch between the sprites which also consumes time
  • Many files are hard to handle
  • Many files consume much more memory

With a sprite sheet these problems do not exist: The sprites are all stacked in one (or more) sprite sheets. An additional file tells the game engine where to find which sprite and how to display it. Think of it like packing many files in a zip file.

http://www.texturepacker.com/sprite-sheet-maker/

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读