Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Plane_Fight
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
Plane_Fight
Commits
7b52a6b3
Commit
7b52a6b3
authored
Feb 21, 2022
by
智慧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:删除resources文件夹
parent
ef1f1c35
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
162 additions
and
15 deletions
+162
-15
cocos_generator.fire
assets/cocos_generator/scene/cocos_generator.fire
+159
-0
enemyControl.ts
assets/cocos_generator/scene/enemyControl.ts
+3
-3
enemy1_die.png
assets/cocos_generator/textures/enemy1_die.png
+0
-0
enemy1_die.png.meta
assets/cocos_generator/textures/enemy1_die.png.meta
+0
-0
resources.meta
assets/resources.meta
+0
-12
No files found.
assets/cocos_generator/scene/cocos_generator.fire
View file @
7b52a6b3
...
@@ -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
assets/cocos_generator/scene/enemyControl.ts
View file @
7b52a6b3
...
@@ -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
(()
=>
{
...
...
assets/
resourc
es/enemy1_die.png
→
assets/
cocos_generator/textur
es/enemy1_die.png
View file @
7b52a6b3
File moved
assets/
resourc
es/enemy1_die.png.meta
→
assets/
cocos_generator/textur
es/enemy1_die.png.meta
View file @
7b52a6b3
File moved
assets/resources.meta
deleted
100644 → 0
View file @
ef1f1c35
{
"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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment