有谁能描述一下相位器的TexturePacker设置吗?我正在使用带有JSON散列格式的地图集在我的游戏中放置对象……它们甚至都不是动画。但是我收到了很多"Cannot set frameName: someimage.gif“错误...我做错了什么?我确实做对过一次,用的是免费版本的TexturePacker...然后我买了它,试着做一些改变,但无法再次正确!
我的TexturePacker设置:
数据:
数据格式: json (hash)
纹理
纹理格式: PNG像素格式: RGBA8888
布局
最大尺寸W/H: 4096大小约束: POT (2的幂)强制平方:启用允许旋转:禁用检测相同的精灵:启用
精灵
其他的都不能打开...
发布于 2014-12-23 22:41:00
发布于 2014-10-22 22:10:27
我还将TexturePacker与Phaser一起使用。工作很棒。
我使用:
Javascript:
// Load atlas
this.game.load.atlas('atlas-interface', 'assets/images/atlas_interface.png', 'assets/images/atlas_interface.json');
// Sprite creation
this.game.add.sprite(0, 0, "atlas-interface", "image1.png");https://stackoverflow.com/questions/26150405
复制相似问题