Commit 7b52a6b3 authored by 智慧's avatar 智慧

feat:删除resources文件夹

parent ef1f1c35
...@@ -27,6 +27,9 @@ ...@@ -27,6 +27,9 @@
}, },
{ {
"__id__": 20 "__id__": 20
},
{
"__id__": 22
} }
], ],
"_active": false, "_active": false,
...@@ -849,5 +852,161 @@ ...@@ -849,5 +852,161 @@
"__uuid__": "2d5bd71d-83bc-495b-b587-33b5cf01281b" "__uuid__": "2d5bd71d-83bc-495b-b587-33b5cf01281b"
}, },
"_id": "3duspBSzBGLJD3AvOCutAq" "_id": "3duspBSzBGLJD3AvOCutAq"
},
{
"__type__": "cc.Node",
"_name": "res",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 23
}
],
"_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.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": "90za0ZVO1GAI51lvhSkMQs"
},
{
"__type__": "cc.Node",
"_name": "enemy1_die",
"_objFlags": 0,
"_parent": {
"__id__": 22
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 24
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 51,
"height": 46
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-233.384,
-198.753,
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": "a5rgNnYVFIlKYa2aYxU18i"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 23
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "2a2f2599-24ee-4b0c-9455-103f981e1e08"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "1dGGtazEpCDbpFZRdCQWfc"
} }
] ]
\ No newline at end of file
...@@ -24,9 +24,9 @@ export default class EnemyControl extends cc.Component { ...@@ -24,9 +24,9 @@ export default class EnemyControl extends cc.Component {
die() { die() {
this.isDie = true; this.isDie = true;
//动态加载图片 //动态加载图片
cc.loader.loadRes("enemy1_die", cc.SpriteFrame, (err, res) => {
this.node.getComponent(cc.Sprite).spriteFrame = res; let die = cc.find("res/enemy1_die");
}); this.node.getComponent(cc.Sprite).spriteFrame = die.getComponent(cc.Sprite).spriteFrame;
// 300毫秒后销毁 // 300毫秒后销毁
setTimeout(() => { setTimeout(() => {
......
{
"ver": "1.1.2",
"uuid": "8b6decaa-59d3-4bac-9ad1-8bb6941249eb",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
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