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

TexturePacker 到 flash 的简单使用

发布时间:2020-12-15 18:36:57 所属栏目:百科 来源:网络整理
导读:来源:?http://flash-adobe.blogspot.jp/2012/05/texturepacker.html 视频: ?http://www.gotoandlearn.com/play.php?id=147 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 [Embed(source= "assets/penguin.xml" ,mimeType= "application/octet-stream"

来源:?http://flash-adobe.blogspot.jp/2012/05/texturepacker.html

视频: ?http://www.gotoandlearn.com/play.php?id=147


01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
[Embed(source= "assets/penguin.xml" ,mimeType= "application/octet-stream" )]
var AtlasXML:Class;
??
[Embed(source= "assets/penguin.png" )]
var AtlasTexture:Class;
??
// <----- create texture
var texture:Texture = Texture.fromBitmap( new AtlasTexture());
var xml:XML = XML( new AtlasXML());
var atlas:TextureAtlas = new TextureAtlas(texture,xml);
??
// <----- create MovieClip
var mc:MovieClip = new MovieClip(atlas.getTextures( "penguin" ), 30 );
addChild(mc);
??
// <----- activate MovieClip
Starling.juggler.add(mc);

(编辑:李大同)

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

    推荐文章
      热点阅读