Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
JJ_Game_09
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
JJ_Game_09
Commits
a93e03f9
Commit
a93e03f9
authored
Aug 22, 2023
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新皮肤
parent
1a3c7758
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
96 additions
and
132 deletions
+96
-132
JJ_Game_09.fire
assets/JJ_Game_09/scene/JJ_Game_09.fire
+75
-111
JJ_Game_09.ts
assets/JJ_Game_09/scene/JJ_Game_09.ts
+13
-13
bg_bg.jpg
assets/JJ_Game_09/textures/bg_bg.jpg
+0
-0
btn_return.png
assets/JJ_Game_09/textures/btn_return.png
+0
-0
btn_return.png.meta
assets/JJ_Game_09/textures/btn_return.png.meta
+8
-8
No files found.
assets/JJ_Game_09/scene/JJ_Game_09.fire
View file @
a93e03f9
...
@@ -2775,8 +2775,8 @@
...
@@ -2775,8 +2775,8 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width":
238
,
"width":
139
,
"height":
172
"height":
97
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -2856,7 +2856,7 @@
...
@@ -2856,7 +2856,7 @@
"__id__": 67
"__id__": 67
}
}
],
],
"_active":
tru
e,
"_active":
fals
e,
"_components": [
"_components": [
{
{
"__id__": 71
"__id__": 71
...
@@ -5784,7 +5784,7 @@
...
@@ -5784,7 +5784,7 @@
"__id__": 2
"__id__": 2
},
},
"_children": [],
"_children": [],
"_active":
tru
e,
"_active":
fals
e,
"_components": [
"_components": [
{
{
"__id__": 126
"__id__": 126
...
@@ -6259,7 +6259,7 @@
...
@@ -6259,7 +6259,7 @@
"__id__": 135
"__id__": 135
}
}
],
],
"_active":
tru
e,
"_active":
fals
e,
"_components": [
"_components": [
{
{
"__id__": 137
"__id__": 137
...
@@ -6321,7 +6321,7 @@
...
@@ -6321,7 +6321,7 @@
"__id__": 134
"__id__": 134
},
},
"_children": [],
"_children": [],
"_active":
tru
e,
"_active":
fals
e,
"_components": [
"_components": [
{
{
"__id__": 136
"__id__": 136
...
@@ -6512,8 +6512,8 @@
...
@@ -6512,8 +6512,8 @@
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
-308.927
,
0
,
7.54
,
0
,
0,
0,
0,
0,
0,
0,
...
@@ -6606,8 +6606,8 @@
...
@@ -6606,8 +6606,8 @@
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
-308.927
,
0
,
-4.073
,
0
,
0,
0,
0,
0,
0,
0,
...
@@ -6700,8 +6700,8 @@
...
@@ -6700,8 +6700,8 @@
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
-308.927
,
0
,
-4.073
,
0
,
0,
0,
0,
0,
0,
0,
...
@@ -7079,8 +7079,8 @@
...
@@ -7079,8 +7079,8 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width": 1
920
,
"width": 1
441
,
"height":
1080
"height":
514
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -7092,7 +7092,7 @@
...
@@ -7092,7 +7092,7 @@
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
0,
0,
-501.305
,
0
,
0,
0,
0,
0,
0,
0,
...
@@ -7117,44 +7117,32 @@
...
@@ -7117,44 +7117,32 @@
"_id": "b2k9AbrYdAVJ1JXq+CJOvC"
"_id": "b2k9AbrYdAVJ1JXq+CJOvC"
},
},
{
{
"__type__": "
dragonBones.ArmatureDisplay
",
"__type__": "
cc.Sprite
",
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 150
"__id__": 150
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [],
{
"_srcBlendFactor": 770,
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
"_dstBlendFactor": 771,
}
"_spriteFrame": {
],
"__uuid__": "edb2c26b-4450-44f1-8fdc-10e83e2e6918"
"_armatureName": "armatureName",
"_animationName": "newAnimation",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": 1,
"premultipliedAlpha": false,
"_armatureKey": "a89e9ea1-a7d7-432a-9843-9daf2af67eac#1b563bf1-3619-4f8d-9164-0d6798001a5a",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "a89e9ea1-a7d7-432a-9843-9daf2af67eac"
},
},
"_N$dragonAtlasAsset": {
"_type": 0,
"__uuid__": "1b563bf1-3619-4f8d-9164-0d6798001a5a"
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
},
"_N$_defaultArmatureIndex": 0,
"_fillStart": 0,
"_N$_animationIndex": 1,
"_fillRange": 0,
"_N$_defaultCacheMode": 0,
"_isTrimmedMode": true,
"_N$timeScale": 1,
"_atlas": null,
"_N$debugBones": false,
"_id": "522PFni5RCErJzLs4TkW7Q"
"_N$enableBatch": false,
"_id": "b94GR3wkZBGLCJ38QBD6Q/"
},
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
...
@@ -7181,8 +7169,8 @@
...
@@ -7181,8 +7169,8 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width": 1
920
,
"width": 1
441
,
"height":
1080
"height":
514
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -7194,7 +7182,7 @@
...
@@ -7194,7 +7182,7 @@
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
0,
0,
-501.305
,
0
,
0,
0,
0,
0,
0,
0,
...
@@ -7219,44 +7207,32 @@
...
@@ -7219,44 +7207,32 @@
"_id": "3ch/xN+y9H1qRrpth9GNaK"
"_id": "3ch/xN+y9H1qRrpth9GNaK"
},
},
{
{
"__type__": "
dragonBones.ArmatureDisplay
",
"__type__": "
cc.Sprite
",
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 152
"__id__": 152
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [],
{
"_srcBlendFactor": 770,
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
"_dstBlendFactor": 771,
}
"_spriteFrame": {
],
"__uuid__": "23c20049-0059-4ef7-8e9d-4024aadf3647"
"_armatureName": "armatureName",
"_animationName": "newAnimation",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": 1,
"premultipliedAlpha": false,
"_armatureKey": "a9bc209c-3d39-4648-acac-1abedebb9a49#e3f61642-82bc-4d0f-bb8f-44c2ab65728e",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "a9bc209c-3d39-4648-acac-1abedebb9a49"
},
},
"_N$dragonAtlasAsset": {
"_type": 0,
"__uuid__": "e3f61642-82bc-4d0f-bb8f-44c2ab65728e"
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
},
"_N$_defaultArmatureIndex": 0,
"_fillStart": 0,
"_N$_animationIndex": 1,
"_fillRange": 0,
"_N$_defaultCacheMode": 0,
"_isTrimmedMode": true,
"_N$timeScale": 1,
"_atlas": null,
"_N$debugBones": false,
"_id": "01bQVFxLZOAYEIC5/aAhlT"
"_N$enableBatch": false,
"_id": "dehoxIc0lPNqDtOPzWGn8q"
},
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
...
@@ -7283,8 +7259,8 @@
...
@@ -7283,8 +7259,8 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width": 1
920
,
"width": 1
441
,
"height":
1080
"height":
514
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -7296,7 +7272,7 @@
...
@@ -7296,7 +7272,7 @@
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
0,
0,
-498.799
,
0
,
0,
0,
0,
0,
0,
0,
...
@@ -7321,44 +7297,32 @@
...
@@ -7321,44 +7297,32 @@
"_id": "e2HkpeIudAjYGhz4GlWD/o"
"_id": "e2HkpeIudAjYGhz4GlWD/o"
},
},
{
{
"__type__": "
dragonBones.ArmatureDisplay
",
"__type__": "
cc.Sprite
",
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 154
"__id__": 154
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [],
{
"_srcBlendFactor": 770,
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
"_dstBlendFactor": 771,
}
"_spriteFrame": {
],
"__uuid__": "6959f464-2e7f-47a5-8358-51cf5dd1f9bf"
"_armatureName": "armatureName",
"_animationName": "newAnimation",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": 1,
"premultipliedAlpha": false,
"_armatureKey": "a631ad46-ef0f-4f9b-bdca-299574817202#9a42fec9-4913-4ad6-b166-ac1eeb85cba6",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "a631ad46-ef0f-4f9b-bdca-299574817202"
},
},
"_N$dragonAtlasAsset": {
"_type": 0,
"__uuid__": "9a42fec9-4913-4ad6-b166-ac1eeb85cba6"
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
},
"_N$_defaultArmatureIndex": 0,
"_fillStart": 0,
"_N$_animationIndex": 1,
"_fillRange": 0,
"_N$_defaultCacheMode": 0,
"_isTrimmedMode": true,
"_N$timeScale": 1,
"_atlas": null,
"_N$debugBones": false,
"_id": "cbh+PIC6VHm44ldVHiHV1G"
"_N$enableBatch": false,
"_id": "d7pCvk8kFBW4XTdw+yb7+t"
},
},
{
{
"__type__": "cc.Widget",
"__type__": "cc.Widget",
...
...
assets/JJ_Game_09/scene/JJ_Game_09.ts
View file @
a93e03f9
...
@@ -135,8 +135,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -135,8 +135,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
btn_record
.
on
(
cc
.
Node
.
EventType
.
TOUCH_END
,
this
.
onRecord
,
this
);
this
.
btn_record
.
on
(
cc
.
Node
.
EventType
.
TOUCH_END
,
this
.
onRecord
,
this
);
this
.
btn_play
.
on
(
cc
.
Node
.
EventType
.
TOUCH_END
,
this
.
onPlayRecord
,
this
);
this
.
btn_play
.
on
(
cc
.
Node
.
EventType
.
TOUCH_END
,
this
.
onPlayRecord
,
this
);
this
.
btn_stop
.
on
(
cc
.
Node
.
EventType
.
TOUCH_END
,
this
.
onStopRecord
,
this
);
this
.
btn_stop
.
on
(
cc
.
Node
.
EventType
.
TOUCH_END
,
this
.
onStopRecord
,
this
);
this
.
btn_off
.
on
(
cc
.
Node
.
EventType
.
TOUCH_END
,
this
.
onReadOff
,
this
);
//
this.btn_off.on(cc.Node.EventType.TOUCH_END, this.onReadOff, this);
this
.
btn_on
.
on
(
cc
.
Node
.
EventType
.
TOUCH_END
,
this
.
onReadOpen
,
this
);
//
this.btn_on.on(cc.Node.EventType.TOUCH_END, this.onReadOpen, this);
this
.
btn_back
.
on
(
cc
.
Node
.
EventType
.
TOUCH_END
,
this
.
onBack
,
this
);
this
.
btn_back
.
on
(
cc
.
Node
.
EventType
.
TOUCH_END
,
this
.
onBack
,
this
);
this
.
btn_left
.
on
(
cc
.
Node
.
EventType
.
TOUCH_END
,
this
.
onLeft
,
this
);
this
.
btn_left
.
on
(
cc
.
Node
.
EventType
.
TOUCH_END
,
this
.
onLeft
,
this
);
this
.
btn_right
.
on
(
cc
.
Node
.
EventType
.
TOUCH_END
,
this
.
onRight
,
this
);
this
.
btn_right
.
on
(
cc
.
Node
.
EventType
.
TOUCH_END
,
this
.
onRight
,
this
);
...
@@ -301,8 +301,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -301,8 +301,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
},
2000
);
},
2000
);
}
}
private
onReadOff
()
{
private
onReadOff
()
{
this
.
btn_off
.
active
=
false
;
//
this.btn_off.active = false;
this
.
btn_on
.
active
=
true
;
//
this.btn_on.active = true;
this
.
autoPlay
=
1
;
this
.
autoPlay
=
1
;
console
.
log
(
"
open
"
);
console
.
log
(
"
open
"
);
this
.
showTip
(
"
已开启自动阅读
"
);
this
.
showTip
(
"
已开启自动阅读
"
);
...
@@ -310,8 +310,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -310,8 +310,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
playQuestionAudio
();
this
.
playQuestionAudio
();
}
}
private
onReadOpen
()
{
private
onReadOpen
()
{
this
.
btn_on
.
active
=
false
;
//
this.btn_on.active = false;
this
.
btn_off
.
active
=
true
;
//
this.btn_off.active = true;
this
.
autoPlay
=
0
;
this
.
autoPlay
=
0
;
console
.
log
(
"
off
"
);
console
.
log
(
"
off
"
);
this
.
showTip
(
"
已关闭自动阅读
"
);
this
.
showTip
(
"
已关闭自动阅读
"
);
...
@@ -377,7 +377,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -377,7 +377,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
private
updateTop
()
{
private
updateTop
()
{
let
data
:
Item
=
Game
.
getIns
().
getDataByPage
(
this
.
page
);
let
data
:
Item
=
Game
.
getIns
().
getDataByPage
(
this
.
page
);
this
.
round
.
getComponent
(
cc
.
Label
).
string
=
`
${
data
.
page
+
1
}
/
${
Game
.
getIns
().
len
}
`
this
.
round
.
getComponent
(
cc
.
Label
).
string
=
`
${
data
.
page
+
1
}
/
${
Game
.
getIns
().
len
}
`
cc
.
find
(
"
hand_ske
"
,
this
.
node
).
active
=
data
.
page
==
0
&&
this
.
autoPlay
==
0
;
//
cc.find("hand_ske", this.node).active = data.page == 0 && this.autoPlay == 0;
let
bg_excellent
=
cc
.
find
(
"
top/bg_excellent-small
"
,
this
.
node
);
let
bg_excellent
=
cc
.
find
(
"
top/bg_excellent-small
"
,
this
.
node
);
let
bg_tryagain
=
cc
.
find
(
"
top/bg_tryagain-small
"
,
this
.
node
);
let
bg_tryagain
=
cc
.
find
(
"
top/bg_tryagain-small
"
,
this
.
node
);
let
bg_good
=
cc
.
find
(
"
top/bg_good-small
"
,
this
.
node
);
let
bg_good
=
cc
.
find
(
"
top/bg_good-small
"
,
this
.
node
);
...
@@ -386,8 +386,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -386,8 +386,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
bg_excellent
.
active
=
data
.
recordScore
>
80
;
bg_excellent
.
active
=
data
.
recordScore
>
80
;
bg_good
.
active
=
data
.
recordScore
>=
50
&&
data
.
recordScore
<=
80
;
bg_good
.
active
=
data
.
recordScore
>=
50
&&
data
.
recordScore
<=
80
;
bg_tryagain
.
active
=
data
.
recordScore
>=
0
&&
data
.
recordScore
<
50
;
bg_tryagain
.
active
=
data
.
recordScore
>=
0
&&
data
.
recordScore
<
50
;
this
.
btn_off
.
active
=
this
.
autoPlay
==
0
;
//
this.btn_off.active = this.autoPlay == 0;
this
.
btn_on
.
active
=
this
.
autoPlay
==
1
;
//
this.btn_on.active = this.autoPlay == 1;
this
.
btn_record
.
active
=
true
;
this
.
btn_record
.
active
=
true
;
this
.
btn_noplay
.
active
=
!
data
.
recordAudio
;
this
.
btn_noplay
.
active
=
!
data
.
recordAudio
;
this
.
btn_play
.
active
=
data
.
recordAudio
;
this
.
btn_play
.
active
=
data
.
recordAudio
;
...
@@ -398,7 +398,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -398,7 +398,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
private
showRecordEnd
(
res
)
{
private
showRecordEnd
(
res
)
{
this
.
layout_loading
.
active
=
false
;
this
.
layout_loading
.
active
=
false
;
this
.
recordEndView
.
active
=
true
;
this
.
recordEndView
.
active
=
true
;
asyncDelay
(
4
).
then
(()
=>
{
asyncDelay
(
2
).
then
(()
=>
{
this
.
onHideEnd
();
this
.
onHideEnd
();
});
});
let
overall
=
res
.
result
.
overall
;
let
overall
=
res
.
result
.
overall
;
...
@@ -411,15 +411,15 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -411,15 +411,15 @@ export default class SceneComponent extends MyCocosSceneComponent {
bg_tryagain
.
active
=
overall
<
50
;
bg_tryagain
.
active
=
overall
<
50
;
if
(
overall
>
80
)
{
if
(
overall
>
80
)
{
this
.
playLocalAudio
(
"
excellent
"
);
this
.
playLocalAudio
(
"
excellent
"
);
bg_excellent
.
getComponent
(
dragonBones
.
ArmatureDisplay
).
playAnimation
(
"
newAnimation
"
,
1
);
//
bg_excellent.getComponent(dragonBones.ArmatureDisplay).playAnimation("newAnimation", 1);
}
}
if
(
overall
>=
50
&&
overall
<=
80
)
{
if
(
overall
>=
50
&&
overall
<=
80
)
{
this
.
playLocalAudio
(
"
good
"
);
this
.
playLocalAudio
(
"
good
"
);
bg_good
.
getComponent
(
dragonBones
.
ArmatureDisplay
).
playAnimation
(
"
newAnimation
"
,
1
);
//
bg_good.getComponent(dragonBones.ArmatureDisplay).playAnimation("newAnimation", 1);
}
}
if
(
overall
<
50
)
{
if
(
overall
<
50
)
{
this
.
playLocalAudio
(
"
tryagain
"
);
this
.
playLocalAudio
(
"
tryagain
"
);
bg_tryagain
.
getComponent
(
dragonBones
.
ArmatureDisplay
).
playAnimation
(
"
newAnimation
"
,
1
);
//
bg_tryagain.getComponent(dragonBones.ArmatureDisplay).playAnimation("newAnimation", 1);
}
}
this
.
updateTop
();
this
.
updateTop
();
}
}
...
...
assets/JJ_Game_09/textures/bg_bg.jpg
View replaced file @
1a3c7758
View file @
a93e03f9
59.5 KB
|
W:
|
H:
25.2 KB
|
W:
|
H:
2-up
Swipe
Onion skin
assets/JJ_Game_09/textures/btn_return.png
View replaced file @
1a3c7758
View file @
a93e03f9
8.91 KB
|
W:
|
H:
1.56 KB
|
W:
|
H:
2-up
Swipe
Onion skin
assets/JJ_Game_09/textures/btn_return.png.meta
View file @
a93e03f9
...
@@ -18,14 +18,14 @@
...
@@ -18,14 +18,14 @@
"trimType": "auto",
"trimType": "auto",
"trimThreshold": 1,
"trimThreshold": 1,
"rotated": false,
"rotated": false,
"offsetX":
-1
,
"offsetX":
0
,
"offsetY":
-1
,
"offsetY":
0
,
"trimX":
2
,
"trimX":
0
,
"trimY":
2
,
"trimY":
0
,
"width":
238
,
"width":
139
,
"height":
172
,
"height":
97
,
"rawWidth":
244
,
"rawWidth":
139
,
"rawHeight":
174
,
"rawHeight":
97
,
"borderTop": 0,
"borderTop": 0,
"borderBottom": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderLeft": 0,
...
...
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