Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
DG22
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
DG22
Commits
40bf5af1
Commit
40bf5af1
authored
Nov 30, 2023
by
杨一航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 反馈调整
parent
8d9ee60f
Changes
11
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
353 additions
and
106 deletions
+353
-106
tips.meta
assets/DG22/dragonBones/tips.meta
+12
-0
tip_ske.json
assets/DG22/dragonBones/tips/tip_ske.json
+1
-0
tip_ske.json.meta
assets/DG22/dragonBones/tips/tip_ske.json.meta
+5
-0
tip_tex.json
assets/DG22/dragonBones/tips/tip_tex.json
+1
-0
tip_tex.json.meta
assets/DG22/dragonBones/tips/tip_tex.json.meta
+5
-0
tip_tex.png
assets/DG22/dragonBones/tips/tip_tex.png
+0
-0
tip_tex.png.meta
assets/DG22/dragonBones/tips/tip_tex.png.meta
+36
-0
DG22.fire
assets/DG22/scene/DG22.fire
+274
-102
DG22.ts
assets/DG22/scene/DG22.ts
+15
-0
img_board.png
assets/DG22/textures/img_board.png
+0
-0
img_board.png.meta
assets/DG22/textures/img_board.png.meta
+4
-4
No files found.
assets/DG22/dragonBones/tips.meta
0 → 100644
View file @
40bf5af1
{
"ver": "1.1.2",
"uuid": "f40036bc-cd73-499f-8b85-1651acc870e7",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
assets/DG22/dragonBones/tips/tip_ske.json
0 → 100644
View file @
40bf5af1
{
"name"
:
"tip"
,
"version"
:
"5.5"
,
"frameRate"
:
24
,
"isGlobal"
:
0
,
"armature"
:[{
"name"
:
"Armature"
,
"animation"
:[{
"name"
:
"newAnimation"
,
"ik"
:[],
"ffd"
:[],
"frame"
:[],
"duration"
:
20
,
"slot"
:[{
"name"
:
"圆角矩形_30"
,
"colorFrame"
:[{
"tweenEasing"
:
0
,
"color"
:{
"aM"
:
80
},
"duration"
:
20
},{
"color"
:{
"aM"
:
0
},
"duration"
:
0
}],
"displayFrame"
:[]},{
"name"
:
"圆角矩形_30_拷贝_2"
,
"colorFrame"
:[],
"displayFrame"
:[]}],
"bone"
:[{
"name"
:
"root"
,
"translateFrame"
:[],
"rotateFrame"
:[],
"scaleFrame"
:[]},{
"name"
:
"圆角矩形_30"
,
"translateFrame"
:[],
"rotateFrame"
:[],
"scaleFrame"
:[{
"x"
:
0.73
,
"duration"
:
20
,
"tweenEasing"
:
0
,
"y"
:
0.73
},{
"duration"
:
0
}]}],
"playTimes"
:
0
}],
"bone"
:[{
"name"
:
"root"
,
"transform"
:{}},{
"name"
:
"圆角矩形_30"
,
"transform"
:{},
"parent"
:
"root"
}],
"skin"
:[{
"name"
:
""
,
"slot"
:[{
"name"
:
"圆角矩形_30"
,
"display"
:[{
"name"
:
"提示/圆角矩形_30"
,
"transform"
:{
"skX"
:
-0.0392
,
"skY"
:
-0.0392
},
"type"
:
"image"
,
"path"
:
"提示/圆角矩形_30"
}]},{
"name"
:
"圆角矩形_30_拷贝_2"
,
"display"
:[{
"name"
:
"提示/圆角矩形_30_拷贝_2"
,
"transform"
:{
"skX"
:
-0.1115
,
"skY"
:
-0.1115
},
"type"
:
"image"
,
"path"
:
"提示/圆角矩形_30_拷贝_2"
}]}]}],
"defaultActions"
:[{
"gotoAndPlay"
:
"newAnimation"
}],
"ik"
:[],
"frameRate"
:
24
,
"slot"
:[{
"name"
:
"圆角矩形_30"
,
"color"
:{},
"parent"
:
"圆角矩形_30"
},{
"name"
:
"圆角矩形_30_拷贝_2"
,
"color"
:{},
"z"
:
1
,
"parent"
:
"root"
}],
"type"
:
"Armature"
,
"aabb"
:{
"x"
:
-51
,
"height"
:
102
,
"y"
:
-51
,
"width"
:
102
}}]}
\ No newline at end of file
assets/DG22/dragonBones/tips/tip_ske.json.meta
0 → 100644
View file @
40bf5af1
{
"ver": "1.0.1",
"uuid": "a01d1eb2-0b48-4958-91fc-eae82a99bb2d",
"subMetas": {}
}
\ No newline at end of file
assets/DG22/dragonBones/tips/tip_tex.json
0 → 100644
View file @
40bf5af1
{
"name"
:
"tip"
,
"SubTexture"
:[{
"name"
:
"提示/圆角矩形_30"
,
"x"
:
1
,
"height"
:
102
,
"y"
:
1
,
"width"
:
102
},{
"name"
:
"提示/圆角矩形_30_拷贝_2"
,
"x"
:
105
,
"height"
:
65
,
"y"
:
1
,
"width"
:
65
}],
"height"
:
128
,
"imagePath"
:
"tip_tex.png"
,
"width"
:
256
}
\ No newline at end of file
assets/DG22/dragonBones/tips/tip_tex.json.meta
0 → 100644
View file @
40bf5af1
{
"ver": "1.0.1",
"uuid": "281066f9-a835-4d4b-be1f-94c65e0167e3",
"subMetas": {}
}
\ No newline at end of file
assets/DG22/dragonBones/tips/tip_tex.png
0 → 100644
View file @
40bf5af1
3.54 KB
assets/DG22/dragonBones/tips/tip_tex.png.meta
0 → 100644
View file @
40bf5af1
{
"ver": "2.3.5",
"uuid": "a64effcc-6fa8-45a7-a791-7cafbbb5f43a",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 256,
"height": 128,
"platformSettings": {},
"subMetas": {
"tip_tex": {
"ver": "1.0.4",
"uuid": "444e67b8-7474-41e4-81fa-5c6c9566d7f0",
"rawTextureUuid": "a64effcc-6fa8-45a7-a791-7cafbbb5f43a",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -42.5,
"offsetY": 12,
"trimX": 1,
"trimY": 1,
"width": 169,
"height": 102,
"rawWidth": 256,
"rawHeight": 128,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/DG22/scene/DG22.fire
View file @
40bf5af1
This diff is collapsed.
Click to expand it.
assets/DG22/scene/DG22.ts
View file @
40bf5af1
...
@@ -2,6 +2,7 @@ import { asyncDelay, asyncPlayDragonBoneAnimation, getSpriteFrimeByUrl, goNextPa
...
@@ -2,6 +2,7 @@ import { asyncDelay, asyncPlayDragonBoneAnimation, getSpriteFrimeByUrl, goNextPa
import
{
MyCocosSceneComponent
}
from
"
../script/MyCocosSceneComponent_DG22
"
;
import
{
MyCocosSceneComponent
}
from
"
../script/MyCocosSceneComponent_DG22
"
;
import
Boy
from
"
../script/items/boy_DG22
"
;
import
Boy
from
"
../script/items/boy_DG22
"
;
import
DragObj
from
"
../script/items/dragObj_DG22
"
;
import
DragObj
from
"
../script/items/dragObj_DG22
"
;
import
{
delayCall
}
from
"
../../../form/src/app/play/Unit
"
;
const
{
ccclass
,
property
}
=
cc
.
_decorator
;
const
{
ccclass
,
property
}
=
cc
.
_decorator
;
...
@@ -39,6 +40,12 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -39,6 +40,12 @@ export default class SceneComponent extends MyCocosSceneComponent {
@
property
(
cc
.
Node
)
@
property
(
cc
.
Node
)
cover
:
cc
.
Node
=
null
;
cover
:
cc
.
Node
=
null
;
@
property
(
cc
.
Node
)
flower1
:
cc
.
Node
=
null
;
@
property
(
cc
.
Node
)
flower2
:
cc
.
Node
=
null
;
bgItemData
:
any
;
bgItemData
:
any
;
dragData
:
any
;
dragData
:
any
;
...
@@ -133,6 +140,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -133,6 +140,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
initBg
()
{
initBg
()
{
const
bgNode
=
cc
.
find
(
'
Canvas/bg
'
);
const
bgNode
=
cc
.
find
(
'
Canvas/bg
'
);
bgNode
.
scale
=
this
.
_mapScaleMax
;
bgNode
.
scale
=
this
.
_mapScaleMax
;
this
.
playFlower
(
this
.
flower1
);
this
.
playFlower
(
this
.
flower2
);
cc
.
tween
(
this
.
btn_start
).
to
(
0.3
,
{
scale
:
1.1
}).
to
(
0.2
,
{
scale
:
1
}).
delay
(
1
).
union
().
repeatForever
().
start
();
cc
.
tween
(
this
.
btn_start
).
to
(
0.3
,
{
scale
:
1.1
}).
to
(
0.2
,
{
scale
:
1
}).
delay
(
1
).
union
().
repeatForever
().
start
();
cc
.
tween
(
this
.
btn_restart
).
to
(
0.3
,
{
scale
:
1.1
}).
to
(
0.2
,
{
scale
:
1
}).
delay
(
1
).
union
().
repeatForever
().
start
();
cc
.
tween
(
this
.
btn_restart
).
to
(
0.3
,
{
scale
:
1.1
}).
to
(
0.2
,
{
scale
:
1
}).
delay
(
1
).
union
().
repeatForever
().
start
();
this
.
btn_restart
.
active
=
false
;
this
.
btn_restart
.
active
=
false
;
...
@@ -141,6 +150,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -141,6 +150,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
btn_restart
.
on
(
"
click
"
,
this
.
restartPage
,
this
)
this
.
btn_restart
.
on
(
"
click
"
,
this
.
restartPage
,
this
)
this
.
btn_start
.
active
=
false
;
this
.
btn_start
.
active
=
false
;
this
.
btn_end
.
active
=
false
;
this
.
btn_end
.
active
=
false
;
this
.
btn_end
.
on
(
"
click
"
,
()
=>
{
this
.
btn_end
.
on
(
"
click
"
,
()
=>
{
...
@@ -148,6 +158,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -148,6 +158,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
},
this
)
},
this
)
}
}
async
playFlower
(
flowerNode
)
{
await
asyncPlayDragonBoneAnimation
(
flowerNode
,
"
newAnimation
"
,
1
);
await
asyncDelay
(
10
+
Math
.
random
()
*
5
);
this
.
playFlower
(
flowerNode
);
}
initPageData
()
{
initPageData
()
{
this
.
_rightIndex
=
0
;
this
.
_rightIndex
=
0
;
this
.
bgItemData
=
this
.
data
.
questions
[
0
].
bgItem
;
this
.
bgItemData
=
this
.
data
.
questions
[
0
].
bgItem
;
...
...
assets/DG22/textures/img_board.png
View replaced file @
8d9ee60f
View file @
40bf5af1
61.4 KB
|
W:
|
H:
204 KB
|
W:
|
H:
2-up
Swipe
Onion skin
assets/DG22/textures/img_board.png.meta
View file @
40bf5af1
...
@@ -19,11 +19,11 @@
...
@@ -19,11 +19,11 @@
"trimThreshold": 1,
"trimThreshold": 1,
"rotated": false,
"rotated": false,
"offsetX": 0,
"offsetX": 0,
"offsetY": -1
2.
5,
"offsetY": -15,
"trimX":
43
,
"trimX":
38
,
"trimY": 50,
"trimY": 50,
"width": 10
4
6,
"width": 10
5
6,
"height": 7
66
,
"height": 7
71
,
"rawWidth": 1132,
"rawWidth": 1132,
"rawHeight": 841,
"rawHeight": 841,
"borderTop": 0,
"borderTop": 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