Screen_vibrating

This commit is contained in:
ifengzp 2020-04-06 15:06:14 +08:00
parent 22f54d7a12
commit 5fa244fc15
23 changed files with 1074 additions and 5 deletions

View File

@ -189,7 +189,7 @@
"array": [ "array": [
0, 0,
0, 0,
443.4050067376326, 452.93128617926146,
0, 0,
0, 0,
0, 0,
@ -629,7 +629,7 @@
}, },
"_touching": false, "_touching": false,
"_opacity": 255, "_opacity": 255,
"enableAutoHide": true, "enableAutoHide": false,
"autoHideTime": 1, "autoHideTime": 1,
"_N$handle": { "_N$handle": {
"__id__": 11 "__id__": 11

View File

@ -4,12 +4,13 @@ const LOAD_SCENE_MIN_SEC: number = 1.2;
enum sceneList { enum sceneList {
'Infinite_bg_scroll' = '背景无限滚动', 'Infinite_bg_scroll' = '背景无限滚动',
'Joystick' = '遥控杆', 'Joystick' = '遥控杆',
'Scratch_ticket' = '刮刮卡实现',
'Coin_fly_to_wallet' = '金币落袋效果', 'Coin_fly_to_wallet' = '金币落袋效果',
'Magnifying_mirror' = '局部缩放效果', 'Magnifying_mirror' = '局部缩放效果',
'Change_clothes' = '换装', 'Change_clothes' = '换装',
'Typer' = '打字机效果', 'Typer' = '打字机效果',
'Scratch_ticket' = '刮刮卡实现', 'Moving_ghost' = '移动残影效果',
'Moving_ghost' = '移动残影效果' 'Screen_vibrating' = '震屏效果+动画恢复第一帧'
} }
@ccclass @ccclass

View File

@ -0,0 +1,7 @@
{
"ver": "1.0.1",
"uuid": "a64ad51c-42bc-493b-b790-b7b2e697185e",
"isSubpackage": false,
"subpackageName": "",
"subMetas": {}
}

View File

@ -0,0 +1,721 @@
[
{
"__type__": "cc.SceneAsset",
"_name": "",
"_objFlags": 0,
"_native": "",
"scene": {
"__id__": 1
}
},
{
"__type__": "cc.Scene",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_is3DNode": true,
"_groupIndex": 0,
"groupIndex": 0,
"autoReleaseAssets": false,
"_id": "103c6ddd-452f-494d-9d6b-a12436a4e66a"
},
{
"__type__": "cc.Node",
"_name": "Canvas",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 3
},
{
"__id__": 5
},
{
"__id__": 10
},
{
"__id__": 12
}
],
"_active": true,
"_components": [
{
"__id__": 15
},
{
"__id__": 16
},
{
"__id__": 17
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1334,
"height": 750
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
667,
375,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "a5esZu+45LA5mBpvttspPD"
},
{
"__type__": "cc.Node",
"_name": "Main Camera",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 4
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1334,
"height": 750
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
452.93128617926146,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "e1WoFrQ79G7r4ZuQE3HlNb"
},
{
"__type__": "cc.Camera",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
},
"_enabled": true,
"_cullingMask": 4294967295,
"_clearFlags": 7,
"_backgroundColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_depth": -1,
"_zoomRatio": 1,
"_targetTexture": null,
"_fov": 60,
"_orthoSize": 10,
"_nearClip": 1,
"_farClip": 4096,
"_ortho": true,
"_rect": {
"__type__": "cc.Rect",
"x": 0,
"y": 0,
"width": 1,
"height": 1
},
"_renderStages": 1,
"_alignWithScreen": true,
"_id": "81GN3uXINKVLeW4+iKSlim"
},
{
"__type__": "cc.Node",
"_name": "background",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 6
},
{
"__id__": 7
},
{
"__id__": 8
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1354,
"height": 770
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "c5LzYy9uZKIr6CDjYfj8zd"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "d4c9de58-1785-4030-896d-5142ca20b15a"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "afdARIBydPHrQ+9+AF3xqy"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": -10,
"_right": -10,
"_top": -10,
"_bottom": -10,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 512,
"_originalHeight": 362,
"_id": "7fn8JySQVBkozaRqyE5mcL"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 9
}
],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "13oRSsgn5CZqf64/FK5FT5"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 2
},
"component": "",
"_componentId": "a8a4fhJRiRB8YVcfMOtC1jT",
"handler": "hit",
"customEventData": ""
},
{
"__type__": "cc.Node",
"_name": "label",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 11
}
],
"_prefab": null,
"_opacity": 204,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 494.91,
"height": 213
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "eb2HUeoFNEOZTF9W9Ds9YW"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_useOriginalSize": false,
"_string": "1、点击屏幕任意位置触发震屏\n\n2、点击反馈每次播放完结会重置\n 到第一帧,等待下次触发",
"_N$string": "1、点击屏幕任意位置触发震屏\n\n2、点击反馈每次播放完结会重置\n 到第一帧,等待下次触发",
"_fontSize": 34,
"_lineHeight": 50,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 0,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 1,
"_id": "c1AWDPTIpNsqfthivwHmRs"
},
{
"__type__": "cc.Node",
"_name": "hit",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 13
},
{
"__id__": 14
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 54,
"height": 56
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
0.8,
0.8,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "5ezIVVqbJJQ4jCRUO0cQ74"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "96e6a391-86b0-41e8-9baf-53bc1c12a031"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "37ekAzm9tBap2FbsB+/ydQ"
},
{
"__type__": "cc.Animation",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
},
"_enabled": true,
"_defaultClip": {
"__uuid__": "3cf5c271-9120-4c87-96be-27efb585cb77"
},
"_clips": [
{
"__uuid__": "3cf5c271-9120-4c87-96be-27efb585cb77"
}
],
"playOnLoad": false,
"_id": "39yhowZfBBR7vTVTu9mV39"
},
{
"__type__": "cc.Canvas",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_designResolution": {
"__type__": "cc.Size",
"width": 1334,
"height": 750
},
"_fitWidth": false,
"_fitHeight": true,
"_id": "59Cd0ovbdF4byw5sbjJDx7"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "29zXboiXFBKoIV4PQ2liTe"
},
{
"__type__": "a8a4fhJRiRB8YVcfMOtC1jT",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"bgNode": {
"__id__": 5
},
"hitFeedback": {
"__id__": 12
},
"_id": "adIDN4Dq1Cr78MzzPndfqp"
}
]

View File

@ -0,0 +1,7 @@
{
"ver": "1.2.6",
"uuid": "103c6ddd-452f-494d-9d6b-a12436a4e66a",
"asyncLoadAssets": false,
"autoReleaseAssets": false,
"subMetas": {}
}

View File

@ -0,0 +1,52 @@
const { ccclass, property } = cc._decorator;
@ccclass
export default class Screen_vibrating extends cc.Component {
@property(cc.Node)
bgNode: cc.Node = null;
@property(cc.Node)
hitFeedback: cc.Node = null;
onLoad() {
this.shakeEffect(this.bgNode, 1);
}
hit(evn: cc.Event.EventTouch) {
this.shakeEffect(evn.currentTarget, 0.6);
this.hitFeedback.setPosition(this.node.convertToNodeSpaceAR(evn.getLocation()));
this.hitFeedback.active = true;
let anim = this.hitFeedback.getComponent(cc.Animation);
anim.on('finished', () => {
this.hitFeedback.active = false;
anim.setCurrentTime(0);
anim.stop();
});
anim.play();
}
shakeEffect(node: cc.Node, duration) {
node.stopAllActions();
node.runAction(
cc
.sequence(
cc.moveTo(0.02, cc.v2(5, 7)),
cc.moveTo(0.02, cc.v2(-6, 7)),
cc.moveTo(0.02, cc.v2(-13, 3)),
cc.moveTo(0.02, cc.v2(3, -6)),
cc.moveTo(0.02, cc.v2(-5, 5)),
cc.moveTo(0.02, cc.v2(2, -8)),
cc.moveTo(0.02, cc.v2(-8, -10)),
cc.moveTo(0.02, cc.v2(3, 10)),
cc.moveTo(0.02, cc.v2(0, 0))
)
.repeatForever()
);
this.scheduleOnce(() => {
node.stopAllActions();
node.setPosition(0, 0);
}, duration);
}
}

View File

@ -0,0 +1,9 @@
{
"ver": "1.0.5",
"uuid": "a8a4f849-4624-41f1-855c-7cc3ad0b58d3",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}

View File

@ -0,0 +1,7 @@
{
"ver": "1.0.1",
"uuid": "38ea385b-793f-40e0-9b51-afd291a1c983",
"isSubpackage": false,
"subpackageName": "",
"subMetas": {}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

View File

@ -0,0 +1,36 @@
{
"ver": "2.3.4",
"uuid": "ed8ff3a4-0c91-4298-a2a5-9bb8971b473f",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 130,
"height": 130,
"platformSettings": {},
"subMetas": {
"01@2x": {
"ver": "1.0.4",
"uuid": "96e6a391-86b0-41e8-9baf-53bc1c12a031",
"rawTextureUuid": "ed8ff3a4-0c91-4298-a2a5-9bb8971b473f",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 1,
"offsetY": 4,
"trimX": 39,
"trimY": 33,
"width": 54,
"height": 56,
"rawWidth": 130,
"rawHeight": 130,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View File

@ -0,0 +1,36 @@
{
"ver": "2.3.4",
"uuid": "cd13f6fe-ba98-4e02-b007-9d0e1c95ffb1",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 130,
"height": 130,
"platformSettings": {},
"subMetas": {
"02@2x": {
"ver": "1.0.4",
"uuid": "7b582807-9fa3-4932-b242-b2e8340c08fb",
"rawTextureUuid": "cd13f6fe-ba98-4e02-b007-9d0e1c95ffb1",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 5,
"offsetY": 5,
"trimX": 29,
"trimY": 17,
"width": 82,
"height": 86,
"rawWidth": 130,
"rawHeight": 130,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@ -0,0 +1,36 @@
{
"ver": "2.3.4",
"uuid": "2ddcecd6-d3bf-4508-a62b-f66bfa799260",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 130,
"height": 130,
"platformSettings": {},
"subMetas": {
"03@2x": {
"ver": "1.0.4",
"uuid": "079a8f9e-792d-440c-acdb-4da3428d55ef",
"rawTextureUuid": "2ddcecd6-d3bf-4508-a62b-f66bfa799260",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 7,
"offsetY": 7,
"trimX": 21,
"trimY": 5,
"width": 102,
"height": 106,
"rawWidth": 130,
"rawHeight": 130,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@ -0,0 +1,36 @@
{
"ver": "2.3.4",
"uuid": "237d1205-ad13-4f47-b476-91f23a8780b4",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 130,
"height": 130,
"platformSettings": {},
"subMetas": {
"04@2x": {
"ver": "1.0.4",
"uuid": "2415e6aa-d116-411c-b0fb-b85bd80aae71",
"rawTextureUuid": "237d1205-ad13-4f47-b476-91f23a8780b4",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 4.5,
"offsetY": 0,
"trimX": 9,
"trimY": 2,
"width": 121,
"height": 126,
"rawWidth": 130,
"rawHeight": 130,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

View File

@ -0,0 +1,36 @@
{
"ver": "2.3.4",
"uuid": "8cac317b-7f10-450c-85dc-be7c9b8dbb75",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 512,
"height": 362,
"platformSettings": {},
"subMetas": {
"background": {
"ver": "1.0.4",
"uuid": "d4c9de58-1785-4030-896d-5142ca20b15a",
"rawTextureUuid": "8cac317b-7f10-450c-85dc-be7c9b8dbb75",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 512,
"height": 362,
"rawWidth": 512,
"rawHeight": 362,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View File

@ -0,0 +1,36 @@
{
"ver": "2.3.4",
"uuid": "de3f1438-6ffe-4af9-bfc1-bcd34139e642",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 228,
"height": 159,
"platformSettings": {},
"subMetas": {
"sheep": {
"ver": "1.0.4",
"uuid": "19f64cc3-dd3d-45bf-87b3-3fa2e93cac86",
"rawTextureUuid": "de3f1438-6ffe-4af9-bfc1-bcd34139e642",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -3.5,
"offsetY": -0.5,
"trimX": 27,
"trimY": 24,
"width": 167,
"height": 112,
"rawWidth": 228,
"rawHeight": 159,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

43
assets/hit.anim Normal file
View File

@ -0,0 +1,43 @@
{
"__type__": "cc.AnimationClip",
"_name": "hit",
"_objFlags": 0,
"_native": "",
"_duration": 1,
"sample": 4,
"speed": 10,
"wrapMode": 1,
"curveData": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 0,
"value": {
"__uuid__": "96e6a391-86b0-41e8-9baf-53bc1c12a031"
}
},
{
"frame": 0.25,
"value": {
"__uuid__": "7b582807-9fa3-4932-b242-b2e8340c08fb"
}
},
{
"frame": 0.5,
"value": {
"__uuid__": "079a8f9e-792d-440c-acdb-4da3428d55ef"
}
},
{
"frame": 0.75,
"value": {
"__uuid__": "2415e6aa-d116-411c-b0fb-b85bd80aae71"
}
}
]
}
}
},
"events": []
}

5
assets/hit.anim.meta Normal file
View File

@ -0,0 +1,5 @@
{
"ver": "2.1.0",
"uuid": "3cf5c271-9120-4c87-96be-27efb585cb77",
"subMetas": {}
}

View File

@ -45,5 +45,6 @@
"live": { "live": {
"enable": false "enable": false
} }
} },
"start-scene": "current"
} }