Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
NJ_game_select
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
NJ_game_select
Commits
862e8ffb
Commit
862e8ffb
authored
Jul 11, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 添加猫崽子
parent
86899210
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
194 additions
and
3 deletions
+194
-3
mao_ske.json
assets/NJ_game_select/dragonBones/mao_ske.json
+1
-0
mao_ske.json.meta
assets/NJ_game_select/dragonBones/mao_ske.json.meta
+5
-0
mao_tex.json
assets/NJ_game_select/dragonBones/mao_tex.json
+1
-0
mao_tex.json.meta
assets/NJ_game_select/dragonBones/mao_tex.json.meta
+5
-0
mao_tex.png
assets/NJ_game_select/dragonBones/mao_tex.png
+0
-0
mao_tex.png.meta
assets/NJ_game_select/dragonBones/mao_tex.png.meta
+36
-0
NJ_game_select.fire
assets/NJ_game_select/scene/NJ_game_select.fire
+138
-3
NJ_game_select.ts
assets/NJ_game_select/scene/NJ_game_select.ts
+8
-0
No files found.
assets/NJ_game_select/dragonBones/mao_ske.json
0 → 100755
View file @
862e8ffb
This diff is collapsed.
Click to expand it.
assets/NJ_game_select/dragonBones/mao_ske.json.meta
0 → 100644
View file @
862e8ffb
{
"ver": "1.0.1",
"uuid": "6e8a5296-0f4b-4615-8a19-bbb986024575",
"subMetas": {}
}
\ No newline at end of file
assets/NJ_game_select/dragonBones/mao_tex.json
0 → 100755
View file @
862e8ffb
{
"name"
:
"mao"
,
"imagePath"
:
"mao_tex.png"
,
"SubTexture"
:[{
"name"
:
"猫01/影子"
,
"x"
:
1
,
"height"
:
66
,
"y"
:
343
,
"width"
:
337
},{
"name"
:
"猫01/尾巴"
,
"x"
:
1
,
"height"
:
109
,
"y"
:
188
,
"width"
:
175
},{
"name"
:
"猫01/右腿"
,
"x"
:
178
,
"height"
:
117
,
"y"
:
188
,
"width"
:
104
},{
"name"
:
"猫01/左腿"
,
"x"
:
1
,
"height"
:
115
,
"y"
:
569
,
"width"
:
64
},{
"name"
:
"猫01/右手"
,
"x"
:
427
,
"height"
:
122
,
"y"
:
590
,
"width"
:
69
},{
"name"
:
"猫01/左手"
,
"x"
:
301
,
"height"
:
74
,
"y"
:
590
,
"width"
:
124
},{
"name"
:
"猫01伸/左手伸直"
,
"x"
:
299
,
"height"
:
169
,
"y"
:
1
,
"width"
:
168
},{
"name"
:
"猫01伸/右手伸直"
,
"x"
:
299
,
"height"
:
169
,
"y"
:
172
,
"width"
:
168
},{
"name"
:
"猫01/身体"
,
"x"
:
340
,
"height"
:
180
,
"y"
:
343
,
"width"
:
122
},{
"name"
:
"猫01/领带"
,
"x"
:
1
,
"height"
:
156
,
"y"
:
411
,
"width"
:
120
},{
"name"
:
"猫01/右耳"
,
"x"
:
155
,
"height"
:
76
,
"y"
:
602
,
"width"
:
90
},{
"name"
:
"猫01/左耳"
,
"x"
:
67
,
"height"
:
85
,
"y"
:
602
,
"width"
:
86
},{
"name"
:
"猫01/组_1"
,
"x"
:
1
,
"height"
:
185
,
"y"
:
1
,
"width"
:
296
},{
"name"
:
"猫01/右眼"
,
"x"
:
247
,
"height"
:
60
,
"y"
:
666
,
"width"
:
59
},{
"name"
:
"猫01/右眉毛"
,
"x"
:
67
,
"height"
:
5
,
"y"
:
595
,
"width"
:
33
},{
"name"
:
"猫01/左眼"
,
"x"
:
1
,
"height"
:
60
,
"y"
:
686
,
"width"
:
59
},{
"name"
:
"猫01/左眉毛"
,
"x"
:
247
,
"height"
:
12
,
"y"
:
602
,
"width"
:
31
},{
"name"
:
"猫01/眼镜"
,
"x"
:
301
,
"height"
:
63
,
"y"
:
525
,
"width"
:
170
},{
"name"
:
"猫01/胡子"
,
"x"
:
123
,
"height"
:
85
,
"y"
:
515
,
"width"
:
176
},{
"name"
:
"猫01/鼻子"
,
"x"
:
67
,
"height"
:
24
,
"y"
:
569
,
"width"
:
28
},{
"name"
:
"猫01/嘴"
,
"x"
:
1
,
"height"
:
30
,
"y"
:
299
,
"width"
:
65
},{
"name"
:
"猫01/帽子"
,
"x"
:
123
,
"height"
:
102
,
"y"
:
411
,
"width"
:
158
}],
"height"
:
1024
,
"width"
:
512
}
\ No newline at end of file
assets/NJ_game_select/dragonBones/mao_tex.json.meta
0 → 100644
View file @
862e8ffb
{
"ver": "1.0.1",
"uuid": "aa64aa96-d92c-44c2-8fab-109ca6ad0dc4",
"subMetas": {}
}
\ No newline at end of file
assets/NJ_game_select/dragonBones/mao_tex.png
0 → 100755
View file @
862e8ffb
113 KB
assets/NJ_game_select/dragonBones/mao_tex.png.meta
0 → 100644
View file @
862e8ffb
{
"ver": "2.3.5",
"uuid": "9069546b-5745-4408-9c3d-059a3424601f",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 512,
"height": 1024,
"platformSettings": {},
"subMetas": {
"mao_tex": {
"ver": "1.0.4",
"uuid": "34e439f8-3a7b-438d-80d5-ce0f44274d20",
"rawTextureUuid": "9069546b-5745-4408-9c3d-059a3424601f",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -7.5,
"offsetY": 138.5,
"trimX": 1,
"trimY": 1,
"width": 495,
"height": 745,
"rawWidth": 512,
"rawHeight": 1024,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/NJ_game_select/scene/NJ_game_select.fire
View file @
862e8ffb
...
@@ -82,18 +82,21 @@
...
@@ -82,18 +82,21 @@
},
},
{
{
"__id__": 44
"__id__": 44
},
{
"__id__": 46
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 4
6
"__id__": 4
9
},
},
{
{
"__id__":
47
"__id__":
50
},
},
{
{
"__id__":
48
"__id__":
51
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -2211,6 +2214,138 @@
...
@@ -2211,6 +2214,138 @@
"_N$enableBatch": false,
"_N$enableBatch": false,
"_id": "35loZvPalLSI4WjiOrEXmc"
"_id": "35loZvPalLSI4WjiOrEXmc"
},
},
{
"__type__": "cc.Node",
"_name": "mao",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 47
},
{
"__id__": 48
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 362.6105263157899,
"height": 483.5647539622176
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
80.12399999999997,
35.094999999999985,
0,
0,
0,
0,
1,
0.5,
0.5,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "66+WH4l4JNMZEKVTQn4hRR"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 46
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_armatureName": "Armature",
"_animationName": "normal",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "6e8a5296-0f4b-4615-8a19-bbb986024575#aa64aa96-d92c-44c2-8fab-109ca6ad0dc4",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "6e8a5296-0f4b-4615-8a19-bbb986024575"
},
"_N$dragonAtlasAsset": {
"__uuid__": "aa64aa96-d92c-44c2-8fab-109ca6ad0dc4"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 2,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "061m6Qe4BAqJlkORETFXfc"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 46
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 36,
"_left": 0,
"_right": 469.22336842105256,
"_top": 0,
"_bottom": 274.2038115094456,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "6c9UEkPuRJGobUlVoOtaR8"
},
{
{
"__type__": "cc.Canvas",
"__type__": "cc.Canvas",
"_name": "",
"_name": "",
...
...
assets/NJ_game_select/scene/NJ_game_select.ts
View file @
862e8ffb
...
@@ -299,9 +299,17 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -299,9 +299,17 @@ export default class SceneComponent extends MyCocosSceneComponent {
initListener
()
{
initListener
()
{
}
}
//播放猫动画
playCatDragon
(
name
)
{
const
animCom
=
cc
.
find
(
`Canvas/mao`
).
getComponent
(
dragonBones
.
ArmatureDisplay
);
animCom
.
playAnimation
(
name
,
-
1
);
}
asyncPlayAudioByUrl
(
url
:
string
)
{
asyncPlayAudioByUrl
(
url
:
string
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
playCatDragon
(
"
begin
"
);
this
.
playAudioByUrl
(
url
,
()
=>
{
this
.
playAudioByUrl
(
url
,
()
=>
{
this
.
playCatDragon
(
"
normal
"
);
resolve
(
null
);
resolve
(
null
);
});
});
});
});
...
...
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