Commit 9a7d3dd2 authored by Friends233's avatar Friends233

重写抓取动画,增加抓取道具判定

parent efba9419
This diff is collapsed.
...@@ -10,20 +10,28 @@ import { CUSTOM_EVENT } from "./Config/GameConfig"; ...@@ -10,20 +10,28 @@ import { CUSTOM_EVENT } from "./Config/GameConfig";
const { ccclass, property } = cc._decorator; const { ccclass, property } = cc._decorator;
@ccclass @ccclass
export default class NewClass extends cc.Component { export default class ClipAni extends cc.Component {
// LIFE-CYCLE CALLBACKS: eventAniEnd: cc.Event.EventCustom = null
eventCollEnt:cc.Event.EventCustom = null
start() {
this.eventAniEnd = new cc.Event.EventCustom(CUSTOM_EVENT.CLIP_ANI_END, true)
this.eventCollEnt = new cc.Event.EventCustom(CUSTOM_EVENT.CLIP_COLLISION, true)
}
/** 碰撞事件 */
onCollisionEnter(other: cc.Collider, self: cc.Collider) {
this.eventCollEnt.detail = {
other
}
cc.find('Canvas').dispatchEvent(this.eventCollEnt)
}
// onLoad () {}
event:cc.Event.EventCustom = null
onAnimCompleted(state) { onAnimCompleted(state) {
this.event.detail = { this.eventAniEnd.detail = {
state state
} }
cc.find('Canvas').dispatchEvent(this.event) cc.find('Canvas').dispatchEvent(this.eventAniEnd)
}
start() {
this.event = new cc.Event.EventCustom(CUSTOM_EVENT.CLIP_ANI_END, true)
} }
// update (dt) {}
} }
/** 关卡信息 */ /** 关卡信息 */
export const LevelInfo = [ export const LevelInfo = [
{level:1,colors:['#EC5F33','#E52800','#CA1D00'],countDown:10} { level: 1, countDown: 30, colors: ['#EC5F33', '#E52800', '#CA1D00'] }
{level:2,colors:['#FF9400','#FF6C00','#EC5F33','#E52800','#CA1D00'],countDown:20} { level: 2, countDown: 30, colors: ['#FF9400', '#FF6C00', '#EC5F33', '#E52800', '#CA1D00'] }
{level:3,colors:['#FFD34A','#FFC300','#FFB637','#FF9400','#FF6C00','#EC5F33','#E52800','#CA1D00'],countDown:30} { level: 3, countDown: 30, colors: ['#FFD34A', '#FFC300', '#FFB637', '#FF9400', '#FF6C00', '#EC5F33', '#E52800', '#CA1D00'] }
] ]
export const CUSTOM_EVENT = { export const CUSTOM_EVENT = {
/** 爪子动画结束的回调 */ /** 爪子动画结束的回调 */
CLIP_ANI_END:'CLIP_ANI_END', CLIP_ANI_END: 'CLIP_ANI_END',
/** 爪子碰撞 */
CLIP_COLLISION: 'CLIP_COLLISION'
}
export const Config = {
/** 爪子能伸出去的长度 */
maxLong: 544,
/** 摇晃速度 */
rotationSpeed: 1,
/** 普通道具移动速度 */
normalPropSpeed: 250,
/** 高级道具移动速度 */
bestPropSpeed: 500,
} }
\ No newline at end of file
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
// Learn life-cycle callbacks: // Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/2.4/manual/en/scripting/life-cycle-callbacks.html // - https://docs.cocos.com/creator/2.4/manual/en/scripting/life-cycle-callbacks.html
import { CUSTOM_EVENT, LevelInfo } from "./Config/GameConfig"; import { CUSTOM_EVENT, Config, LevelInfo } from "./Config/GameConfig";
import { numToChinese, set16ToRgb } from "./utils"; import { numToChinese, set16ToRgb } from "./utils";
const { ccclass, property } = cc._decorator; const { ccclass, property } = cc._decorator;
...@@ -20,7 +20,7 @@ const CLIP_STATE = { ...@@ -20,7 +20,7 @@ const CLIP_STATE = {
} }
@ccclass @ccclass
export default class NewClass extends cc.Component { export default class GameScene extends cc.Component {
/** 单格进度条 */ /** 单格进度条 */
@property(cc.Prefab) @property(cc.Prefab)
procItem: cc.Prefab = null procItem: cc.Prefab = null
...@@ -43,16 +43,29 @@ export default class NewClass extends cc.Component { ...@@ -43,16 +43,29 @@ export default class NewClass extends cc.Component {
/** 游戏是否结束 */ /** 游戏是否结束 */
isGameOver = false isGameOver = false
/** 爪子旋转动画 */ clip: cc.Node = null
clipAni: cc.Animation = null
/** 爪子状态 */
clipState = CLIP_STATE.STOP clipState = CLIP_STATE.STOP
/** 速度 */
clipSpeed = Config.normalPropSpeed
/** 是否在执行动画中 */
isAni = false
/** 抓取的目标 */
clipTarget: cc.Node = null
protected onLoad(): void { protected onLoad(): void {
this.loadAssets() this.loadAssets()
/** 开启碰撞检测 */
const cm = cc.director.getCollisionManager()
cm.enabled = true
cm.enabledDebugDraw = true;
} }
loadAssets(){ loadAssets() {
cc.resources.loadDir('assets/images/clipsAni', cc.SpriteFrame, (_, all) => { cc.resources.loadDir('assets/images/clipsAni', cc.SpriteFrame, (_, all) => {
all.forEach((sp: cc.SpriteFrame) => { all.forEach((sp: cc.SpriteFrame) => {
sp.insetBottom = 124 sp.insetBottom = 124
...@@ -62,55 +75,71 @@ export default class NewClass extends cc.Component { ...@@ -62,55 +75,71 @@ export default class NewClass extends cc.Component {
} }
start() { start() {
this.clip = cc.find('clipMask/clipWrp/clip', this.node)
this.resetConfig()
this.refreshLevelInfo() this.refreshLevelInfo()
this.clipAni = cc.find('clipWrp/clip', this.node).getComponent(cc.Animation)
this.addNodeEvent() this.addNodeEvent()
const sp: cc.AnimationClip = this.clipAni.getClips()[0]
this.node.on(CUSTOM_EVENT.CLIP_ANI_END, this.onAnimCompleted, this)
} }
/** 爪子事件 */ /** 重置游戏设置 */
onAnimCompleted({ detail }) { resetConfig() {
console.log(detail.state) this.clipSpeed = Config.normalPropSpeed
if (detail.state === CLIP_STATE.PLAY) { this.clip.getChildByName('line').height = Config.maxLong
this.setClipState(CLIP_STATE.STOP) const rotationAni = cc.find('clipMask/clipWrp', this.node)
return .getComponent(cc.Animation)
.getAnimationState('clipRation')
rotationAni.speed = Config.rotationSpeed
} }
if (detail.state === CLIP_STATE.STOP) {
this.setClipState(CLIP_STATE.DEFAULT) /** 爪子碰撞事件 */
return onCollEnter({ detail }) {
const other: cc.Collider = detail.other
// 抓到加分道具
if (other.tag == 1) {
this.setStarProc()
} }
this.clipTarget = other.node
this.clipSpeed = other.tag == 1 ? Config.bestPropSpeed : Config.normalPropSpeed
other.tag = 0
this.setClipState(CLIP_STATE.STOP)
} }
/** 添加节点的事件 */ /** 添加节点的事件 */
addNodeEvent() { addNodeEvent() {
const gameBtn = cc.find('gameBtn', this.node) const gameBtn = cc.find('gameBtn', this.node)
gameBtn.on(cc.Node.EventType.TOUCH_END, this.playGame, this) gameBtn.on(cc.Node.EventType.TOUCH_END, this.playGame, this)
this.node.on(CUSTOM_EVENT.CLIP_ANI_END, this.onAnimCompleted, this)
this.node.on(CUSTOM_EVENT.CLIP_COLLISION, this.onCollEnter, this)
} }
/** 设置爪子状态 */ /** 设置爪子状态 */
setClipState(state) { setClipState(state) {
const ani = cc.find('clipWrp', this.node).getComponent(cc.Animation) const ani = cc.find('clipMask/clipWrp', this.node).getComponent(cc.Animation)
const node = cc.find('clipWrp/clip', this.node) const node = cc.find('clipMask/clipWrp/clip', this.node)
const clip = node.getComponent(cc.Animation), spf = node.getComponent(cc.Sprite).spriteFrame const clip = node.getComponent(cc.Animation)
// spf.insetBottom = 125
// spf.insetTop = 10 const def = cc.find('clipMask/clipWrp/default', this.node)
this.clipState = state this.clipState = state
switch (state) { switch (state) {
case CLIP_STATE.DEFAULT: case CLIP_STATE.DEFAULT:
// 回复旋转
ani.resume() ani.resume()
clip.play(state) // 显示默认动效
def.active = true
// 隐藏爪子动效
this.clip.active = false
// 有道具销毁道具
this.clipTarget?.destroy?.()
this.clipTarget = null
break; break;
case CLIP_STATE.PLAY: case CLIP_STATE.PLAY:
clip.pause(CLIP_STATE.DEFAULT)
ani.pause()
clip.play(state)
break;
case CLIP_STATE.STOP: case CLIP_STATE.STOP:
clip.pause(CLIP_STATE.DEFAULT)
ani.pause() ani.pause()
this.clip.active = true
def.active = false
// 播放爪子动效
clip.play(state) clip.play(state)
break; break;
} }
...@@ -120,19 +149,6 @@ export default class NewClass extends cc.Component { ...@@ -120,19 +149,6 @@ export default class NewClass extends cc.Component {
playGame() { playGame() {
if (this.isGameOver) return if (this.isGameOver) return
this.setClipState(CLIP_STATE.PLAY) this.setClipState(CLIP_STATE.PLAY)
this.setStarProc()
if (this.starNum >= this.levelObjectives) {
const nextLevel = this.actLevel + 1
if (nextLevel >= LevelInfo.length) { // 已通关
this.gameOver()
return
}
console.log(`过关`)
this.refreshLevelInfo(nextLevel)
return
}
} }
/** 游戏结束 */ /** 游戏结束 */
...@@ -198,6 +214,21 @@ export default class NewClass extends cc.Component { ...@@ -198,6 +214,21 @@ export default class NewClass extends cc.Component {
this.starNum++ this.starNum++
this.setLable('starIcon/starProc', `${this.starNum}/${this.levelObjectives}`) this.setLable('starIcon/starProc', `${this.starNum}/${this.levelObjectives}`)
// 达到目标
if (this.starNum >= this.levelObjectives) {
this.nextLevel()
}
}
/** 下一关 */
nextLevel() {
const nextLevel = this.actLevel + 1
this.unschedule(this.startCd)
if (nextLevel >= LevelInfo.length) { // 已通关
this.gameOver()
return
}
this.refreshLevelInfo(nextLevel)
} }
/** 更新游戏进度条信息 */ /** 更新游戏进度条信息 */
...@@ -210,6 +241,36 @@ export default class NewClass extends cc.Component { ...@@ -210,6 +241,36 @@ export default class NewClass extends cc.Component {
procBg.x = -(procBg.width / 2) procBg.x = -(procBg.width / 2)
} }
update(dt) { update(dt: number): void {
// 锚点跟爪子之间的大致距离
const offset = 41
const maxLong = Config.maxLong - offset
// 爪子出手
if (this.clipState == CLIP_STATE.PLAY) {
if (this.clip.y <= -maxLong) {
this.setClipState(CLIP_STATE.STOP)
return
}
this.clip.y -= dt * this.clipSpeed
}
// 爪子回收
if (this.clipState == CLIP_STATE.STOP) {
if (this.clip.y >= -offset) {
// 恢复初始速度
this.clipSpeed = Config.normalPropSpeed
this.setClipState(CLIP_STATE.DEFAULT)
return
}
this.clip.y += dt * this.clipSpeed
// 抓到物品,道具的移动
if (this.clipTarget) {
const pos = this.clip.convertToWorldSpaceAR(cc.v2(0, -133))
const p = this.clipTarget.parent.convertToWorldSpaceAR(cc.v2(0, 0))
this.clipTarget.setPosition(pos.x - p.x, pos.y - p.y)
}
}
} }
} }
const {ccclass, property} = cc._decorator;
@ccclass
export default class propMove extends cc.Component {
}
{
"ver": "1.1.0",
"uuid": "a4ceb029-4578-4ea5-85e6-85fe6021e0b7",
"importer": "typescript",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
...@@ -3,55 +3,55 @@ ...@@ -3,55 +3,55 @@
"_name": "clipPlay", "_name": "clipPlay",
"_objFlags": 0, "_objFlags": 0,
"_native": "", "_native": "",
"_duration": 1.5, "_duration": 0.08333333333333333,
"sample": 60, "sample": 60,
"speed": 1, "speed": 1,
"wrapMode": 1, "wrapMode": 1,
"curveData": { "curveData": {
"props": { "paths": {
"height": [ "con": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{ {
"frame": 0, "frame": 0,
"value": 148 "value": {
"__uuid__": "2820540a-5f9d-4eac-8d0f-e82c2e4f1eec"
}
}, },
{ {
"frame": 1.5, "frame": 0.016666666666666666,
"value": 648 "value": {
"__uuid__": "bf5ca51e-92a5-4c72-b586-50cb397202d0"
} }
]
}, },
"paths": {
"line": {
"props": {
"height": [
{ {
"frame": 0, "frame": 0.03333333333333333,
"value": 44 "value": {
"__uuid__": "543b2355-cc24-4e66-a833-3c6810dd3d1c"
}
}, },
{ {
"frame": 1.5, "frame": 0.05,
"value": 538 "value": {
} "__uuid__": "0472450c-bc3a-4487-bb62-11da27e76d71"
]
}
} }
}, },
"comps": {
"cc.Sprite": {
"spriteFrame": [
{ {
"frame": 0, "frame": 0.06666666666666667,
"value": { "value": {
"__uuid__": "12fa6426-b4e8-4566-b187-464b9b22063a" "__uuid__": "42e5dc13-a031-417b-9734-5487dda42adf"
} }
} }
] ]
} }
} }
}
}
}, },
"events": [ "events": [
{ {
"frame": 1.5, "frame": 0.06666666666666667,
"func": "onAnimCompleted", "func": "onAnimCompleted",
"params": [ "params": [
"clipPlay" "clipPlay"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"_name": "clipRation", "_name": "clipRation",
"_objFlags": 0, "_objFlags": 0,
"_native": "", "_native": "",
"_duration": 4, "_duration": 3.966666666666667,
"sample": 30, "sample": 30,
"speed": 1, "speed": 1,
"wrapMode": 2, "wrapMode": 2,
...@@ -16,14 +16,14 @@ ...@@ -16,14 +16,14 @@
}, },
{ {
"frame": 1, "frame": 1,
"value": 30 "value": 40
}, },
{ {
"frame": 3, "frame": 3,
"value": -30 "value": -40
}, },
{ {
"frame": 4, "frame": 3.966666666666667,
"value": 0 "value": 0
} }
] ]
......
...@@ -3,75 +3,51 @@ ...@@ -3,75 +3,51 @@
"_name": "clipStop", "_name": "clipStop",
"_objFlags": 0, "_objFlags": 0,
"_native": "", "_native": "",
"_duration": 1.6833333333333333, "_duration": 0.08333333333333333,
"sample": 60, "sample": 60,
"speed": 1, "speed": 1,
"wrapMode": 36, "wrapMode": 1,
"curveData": { "curveData": {
"props": {
"height": [
{
"frame": 0,
"value": 148
},
{
"frame": 1.5,
"value": 648
}
]
},
"paths": { "paths": {
"line": { "con": {
"props": {
"height": [
{
"frame": 0,
"value": 44
},
{
"frame": 1.5,
"value": 542
}
]
}
}
},
"comps": { "comps": {
"cc.Sprite": { "cc.Sprite": {
"spriteFrame": [ "spriteFrame": [
{ {
"frame": 1.5333333333333334, "frame": 0,
"value": { "value": {
"__uuid__": "b08167e4-2bc5-464c-b4b1-b8646889045f" "__uuid__": "9f9b15ed-14ef-441f-a30c-09ef39aa5da4"
} }
}, },
{ {
"frame": 1.5666666666666667, "frame": 0.016666666666666666,
"value": { "value": {
"__uuid__": "57f3929b-38bc-4532-a855-a125d00755cc" "__uuid__": "2476d47e-cf46-4888-b9a0-7cc039485dd2"
} }
}, },
{ {
"frame": 1.6, "frame": 0.03333333333333333,
"value": { "value": {
"__uuid__": "d75a7db3-1b4a-450f-b766-745a8172efa8" "__uuid__": "d75a7db3-1b4a-450f-b766-745a8172efa8"
} }
}, },
{ {
"frame": 1.6333333333333333, "frame": 0.05,
"value": { "value": {
"__uuid__": "2476d47e-cf46-4888-b9a0-7cc039485dd2" "__uuid__": "57f3929b-38bc-4532-a855-a125d00755cc"
} }
}, },
{ {
"frame": 1.6666666666666667, "frame": 0.06666666666666667,
"value": { "value": {
"__uuid__": "9f9b15ed-14ef-441f-a30c-09ef39aa5da4" "__uuid__": "b08167e4-2bc5-464c-b4b1-b8646889045f"
} }
} }
] ]
} }
} }
}
}
}, },
"events": [ "events": [
{ {
......
{
"ver": "1.1.3",
"uuid": "031be2d7-1990-4a7f-9369-47539ae00a8d",
"importer": "folder",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.7",
"uuid": "75a92d8a-dffd-4028-990d-6c28d1fae543",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 133,
"height": 122,
"platformSettings": {},
"subMetas": {
"夹子开_00000": {
"ver": "1.0.6",
"uuid": "2820540a-5f9d-4eac-8d0f-e82c2e4f1eec",
"importer": "sprite-frame",
"rawTextureUuid": "75a92d8a-dffd-4028-990d-6c28d1fae543",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0.5,
"offsetY": 0,
"trimX": 19,
"trimY": 5,
"width": 96,
"height": 112,
"rawWidth": 133,
"rawHeight": 122,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.7",
"uuid": "5a20d783-3f3a-4871-910d-479d94817863",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 133,
"height": 122,
"platformSettings": {},
"subMetas": {
"夹子开_00001": {
"ver": "1.0.6",
"uuid": "bf5ca51e-92a5-4c72-b586-50cb397202d0",
"importer": "sprite-frame",
"rawTextureUuid": "5a20d783-3f3a-4871-910d-479d94817863",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0.5,
"offsetY": -1,
"trimX": 17,
"trimY": 5,
"width": 100,
"height": 114,
"rawWidth": 133,
"rawHeight": 122,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.7",
"uuid": "f1adcf3a-ec9d-4745-8541-39f8ec70e7f2",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 133,
"height": 122,
"platformSettings": {},
"subMetas": {
"夹子开_00002": {
"ver": "1.0.6",
"uuid": "543b2355-cc24-4e66-a833-3c6810dd3d1c",
"importer": "sprite-frame",
"rawTextureUuid": "f1adcf3a-ec9d-4745-8541-39f8ec70e7f2",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0.5,
"offsetY": -1.5,
"trimX": 15,
"trimY": 5,
"width": 104,
"height": 115,
"rawWidth": 133,
"rawHeight": 122,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.7",
"uuid": "f67bb5c4-f62b-45aa-9ad6-fcf2ee15384a",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 133,
"height": 122,
"platformSettings": {},
"subMetas": {
"夹子开_00003": {
"ver": "1.0.6",
"uuid": "0472450c-bc3a-4487-bb62-11da27e76d71",
"importer": "sprite-frame",
"rawTextureUuid": "f67bb5c4-f62b-45aa-9ad6-fcf2ee15384a",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0.5,
"offsetY": -1,
"trimX": 12,
"trimY": 5,
"width": 110,
"height": 114,
"rawWidth": 133,
"rawHeight": 122,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.7",
"uuid": "906f0b58-d0f6-40c7-b090-7047cfb4f37a",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 133,
"height": 122,
"platformSettings": {},
"subMetas": {
"夹子开_00004": {
"ver": "1.0.6",
"uuid": "42e5dc13-a031-417b-9734-5487dda42adf",
"importer": "sprite-frame",
"rawTextureUuid": "906f0b58-d0f6-40c7-b090-7047cfb4f37a",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0.5,
"offsetY": 0,
"trimX": 7,
"trimY": 5,
"width": 120,
"height": 112,
"rawWidth": 133,
"rawHeight": 122,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
"genMipmaps": false, "genMipmaps": false,
"packable": true, "packable": true,
"width": 133, "width": 133,
"height": 145, "height": 139,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"夹子夹_00000": { "夹子夹_00000": {
...@@ -20,14 +20,14 @@ ...@@ -20,14 +20,14 @@
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0.5,
"offsetY": 0, "offsetY": -3,
"trimX": 0, "trimX": 7,
"trimY": 0, "trimY": 16,
"width": 120, "width": 120,
"height": 138, "height": 113,
"rawWidth": 120, "rawWidth": 133,
"rawHeight": 138, "rawHeight": 139,
"borderTop": 5, "borderTop": 5,
"borderBottom": 108, "borderBottom": 108,
"borderLeft": 0, "borderLeft": 0,
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
"genMipmaps": false, "genMipmaps": false,
"packable": true, "packable": true,
"width": 133, "width": 133,
"height": 145, "height": 139,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"夹子夹_00001": { "夹子夹_00001": {
...@@ -20,13 +20,13 @@ ...@@ -20,13 +20,13 @@
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0.5,
"offsetY": 0, "offsetY": -3.5,
"trimX": 0, "trimX": 10,
"trimY": 0, "trimY": 16,
"width": 114, "width": 114,
"height": 139, "height": 114,
"rawWidth": 114, "rawWidth": 133,
"rawHeight": 139, "rawHeight": 139,
"borderTop": 7, "borderTop": 7,
"borderBottom": 107, "borderBottom": 107,
......
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
"premultiplyAlpha": false, "premultiplyAlpha": false,
"genMipmaps": false, "genMipmaps": false,
"packable": true, "packable": true,
"width": 104, "width": 133,
"height": 140, "height": 139,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"夹子夹_00002": { "夹子夹_00002": {
...@@ -20,14 +20,14 @@ ...@@ -20,14 +20,14 @@
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0.5,
"offsetY": 0, "offsetY": -4,
"trimX": 0, "trimX": 15,
"trimY": 0, "trimY": 16,
"width": 104, "width": 104,
"height": 140, "height": 115,
"rawWidth": 104, "rawWidth": 133,
"rawHeight": 140, "rawHeight": 139,
"borderTop": 7.5, "borderTop": 7.5,
"borderBottom": 107.5, "borderBottom": 107.5,
"borderLeft": 0, "borderLeft": 0,
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
"genMipmaps": false, "genMipmaps": false,
"packable": true, "packable": true,
"width": 133, "width": 133,
"height": 145, "height": 139,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"夹子夹_00003": { "夹子夹_00003": {
...@@ -20,13 +20,13 @@ ...@@ -20,13 +20,13 @@
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 1,
"offsetY": 0, "offsetY": -3.5,
"trimX": 0, "trimX": 18,
"trimY": 0, "trimY": 16,
"width": 99, "width": 99,
"height": 139, "height": 114,
"rawWidth": 99, "rawWidth": 133,
"rawHeight": 139, "rawHeight": 139,
"borderTop": 7, "borderTop": 7,
"borderBottom": 107, "borderBottom": 107,
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
"genMipmaps": false, "genMipmaps": false,
"packable": true, "packable": true,
"width": 133, "width": 133,
"height": 145, "height": 139,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"夹子夹_00004": { "夹子夹_00004": {
...@@ -20,14 +20,14 @@ ...@@ -20,14 +20,14 @@
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0.5,
"offsetY": 0, "offsetY": -3,
"trimX": 0, "trimX": 19,
"trimY": 0, "trimY": 16,
"width": 96, "width": 96,
"height": 138, "height": 113,
"rawWidth": 96, "rawWidth": 133,
"rawHeight": 138, "rawHeight": 139,
"borderTop": 15, "borderTop": 15,
"borderBottom": 98, "borderBottom": 98,
"borderLeft": 0, "borderLeft": 0,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment