2014年12月3日

摘要: 因为骨骼动画是由多个sprite组成, 所以需要遍历每个sprite 才能修改整体, 开头这样设置,在游戏中发现走路状态没问题,攻击状态就有部分sprite没效果 for (auto & object : armObj->getBoneDic()) { if (cocost... 阅读全文
posted @ 2014-12-03 10:42 初心禅者 阅读(1002) 评论(0) 推荐(0)

2013年12月17日

摘要: 该脚本用于photoshop,美术可以先用photoshop拼接图片,在加载该脚本导出xml格式的文件,该文件记录了每个小的图片坐标信息// Copyright 2002-2003. Adobe Systems, Incorporated. All rights reserved.// Set the active layer to the last art layer of the active document, or the// first if the last is already active. function getLayerSetsIndex(){ fun... 阅读全文
posted @ 2013-12-17 03:46 初心禅者 阅读(511) 评论(0) 推荐(0)