Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OP13
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
OP13
Commits
d47f89a4
Commit
d47f89a4
authored
Nov 22, 2021
by
唐鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理动画效果自动播放
parent
42778d65
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
24762 additions
and
24927 deletions
+24762
-24927
ItemTurnPage.prefab
play/assets/OP13/prefabs/ItemTurnPage.prefab
+5
-5
ItemTurnPage2.prefab
play/assets/OP13/prefabs/ItemTurnPage2.prefab
+5
-5
OP13.fire
play/assets/OP13/scene/OP13.fire
+11
-11
OP13.js
play/assets/OP13/scene/OP13.js
+13
-7
DefaultData.js
play/assets/OP13/script/DefaultData.js
+1
-1
ItemPage.js
play/assets/OP13/script/ItemPage.js
+2
-2
bg_book.png
play/assets/OP13/textures/unpack/bg_book.png
+0
-0
bg_book.png.meta
play/assets/OP13/textures/unpack/bg_book.png.meta
+4
-4
creator.d.ts
play/creator.d.ts
+24707
-24878
jsconfig.json
play/jsconfig.json
+14
-14
No files found.
play/assets/OP13/prefabs/ItemTurnPage.prefab
View file @
d47f89a4
...
...
@@ -36,8 +36,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 47
7
,
"height": 47
0
"width": 47
9
,
"height": 47
4
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -48,8 +48,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
23
8
,
62
,
23
9
,
-5
,
0,
0,
0,
...
...
@@ -98,7 +98,7 @@
"asset": {
"__uuid__": "2449b534-ab4a-43ad-a680-ad4dcc1d3435"
},
"fileId": "
00gTZ/DiVK2IQNRGxcMfDt
",
"fileId": "",
"sync": false
}
]
\ No newline at end of file
play/assets/OP13/prefabs/ItemTurnPage2.prefab
View file @
d47f89a4
...
...
@@ -36,8 +36,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 47
7
,
"height": 47
0
"width": 47
9
,
"height": 47
4
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -48,8 +48,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-23
8
,
62
,
-23
9
,
-5
,
0,
0,
0,
...
...
@@ -98,7 +98,7 @@
"asset": {
"__uuid__": "320caeb2-9a8a-41b4-a87f-62d541b235fd"
},
"fileId": "
00gTZ/DiVK2IQNRGxcMfDt
",
"fileId": "",
"sync": false
}
]
\ No newline at end of file
play/assets/OP13/scene/OP13.fire
View file @
d47f89a4
...
...
@@ -828,8 +828,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width":
1000
,
"height":
69
0
"width":
998
,
"height":
93
0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -841,7 +841,7 @@
"ctor": "Float64Array",
"array": [
0,
146.027
,
200.328
,
0,
0,
0,
...
...
@@ -2766,8 +2766,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 47
7
,
"height": 47
0
"width": 47
9
,
"height": 47
4
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -2778,8 +2778,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-23
8
,
62
,
-23
9
,
-7
,
0,
0,
0,
...
...
@@ -2860,8 +2860,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 47
7
,
"height": 47
0
"width": 47
9
,
"height": 47
4
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -2872,8 +2872,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
23
8
,
62
,
23
9
,
-7
,
0,
0,
0,
...
...
play/assets/OP13/scene/OP13.js
View file @
d47f89a4
const
saveKey
=
"
DataKey_Cocos_FT14
"
;
const
BaseUI
=
require
(
'
BaseUI
'
);
import
{
DefaultData
}
from
'
./DefaultData
'
;
import
EventMgr
from
'
./EventMgr
'
;
import
VerletRender
from
"
./verlet-render
"
;
import
BezierRender
from
"
./bezier-render
"
;
import
{
DefaultData
}
from
'
.
./script
/DefaultData
'
;
import
EventMgr
from
'
.
./script
/EventMgr
'
;
import
VerletRender
from
"
.
./script
/verlet-render
"
;
import
BezierRender
from
"
.
./script
/bezier-render
"
;
const
POS
=
{
LeftPage
:
{
x
:
-
23
8
,
y
:
62
},
RightPage
:
{
x
:
23
8
,
y
:
62
},
LeftPage
:
{
x
:
-
23
9
,
y
:
-
5
},
RightPage
:
{
x
:
23
9
,
y
:
-
5
},
}
cc
.
Class
({
...
...
@@ -162,7 +162,7 @@ cc.Class({
let
page
=
this
.
pageList
[
GameData
.
pageIndex
+
1
];
if
(
!
page
)
{
return
;
return
resolve
(
''
)
;
}
GameData
.
isPlaying
=
true
;
let
itemPage
=
page
.
getComponent
(
'
ItemPage
'
);
...
...
@@ -305,9 +305,15 @@ cc.Class({
},
onTouchPanelLeft
()
{
this
.
onTurnLast
();
setTimeout
(()
=>
{
this
.
autoPlay
();
},
1500
);
},
onTouchPanelRight
()
{
this
.
onTurnNext
();
setTimeout
(()
=>
{
this
.
autoPlay
();
},
1500
);
},
...
...
play/assets/OP13/script/DefaultData.js
View file @
d47f89a4
export
const
DefaultData
=
{
"
haveCover
"
:
true
,
"
coverType
"
:
"
Spine
"
,
"
coverImage
"
:
""
,
"
coverAudio
"
:
""
,
"
coverText
"
:
""
,
"
coverDragonBone
"
:{
"
skeJsonData
"
:{
"
url
"
:
""
},
"
texJsonData
"
:{
"
url
"
:
""
},
"
texPngData
"
:{
"
url
"
:
""
}},
"
titleAudio
"
:
""
,
"
titleText
"
:
""
,
"
titleTextColor
"
:
"
A
"
,
"
pageList
"
:[{
"
pageType
"
:
"
Spine
"
,
"
pageAudio
"
:
"
http://staging-teach.cdn.ireadabc.com/784cd4188bf126d6c3c9395d9a807619.mp3
"
,
"
pageText
"
:
""
,
"
pageImage
"
:
""
,
"
textColor
"
:
"
A
"
,
"
pageDragonBone
"
:{
"
skeJsonData
"
:{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/fc5185ff366f95b362f0d73538d2e553.json
"
,
"
name
"
:
"
OP_SB1_459612_U1L4_20(1)_ske.json
"
},
"
texJsonData
"
:{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/2b2b56ee758ff7cbeb75d7a912262b51.json
"
,
"
name
"
:
"
OP_SB1_459612_U1L4_20(1)_tex.json
"
},
"
texPngData
"
:{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/f57f002e14275cf7e5010ed8cd562ad8.png
"
,
"
name
"
:
"
OP_SB1_459612_U1L4_20(1)_tex.png
"
}}},{
"
pageType
"
:
"
Image
"
,
"
pageAudio
"
:
"
http://staging-teach.cdn.ireadabc.com/7934cdcec68eabe639020bad5420d7f8.mp3
"
,
"
pageText
"
:
""
,
"
pageImage
"
:
""
,
"
textColor
"
:
"
A
"
,
"
pageDragonBone
"
:{
"
skeJsonData
"
:{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/fc5185ff366f95b362f0d73538d2e553.json
"
,
"
name
"
:
"
OP_SB1_459612_U1L4_20(1)_ske.json
"
},
"
texJsonData
"
:{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/2b2b56ee758ff7cbeb75d7a912262b51.json
"
,
"
name
"
:
"
OP_SB1_459612_U1L4_20(1)_tex.json
"
},
"
texPngData
"
:{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/f57f002e14275cf7e5010ed8cd562ad8.png
"
,
"
name
"
:
"
OP_SB1_459612_U1L4_20(1)_tex.png
"
}}},{
"
pageType
"
:
"
Image
"
,
"
pageAudio
"
:
"
http://staging-teach.cdn.ireadabc.com/0b42398a12e1b2f075e9965e4d608765.mp3
"
,
"
pageText
"
:
""
,
"
pageImage
"
:
""
,
"
textColor
"
:
"
A
"
,
"
pageDragonBone
"
:{
"
skeJsonData
"
:{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/fc5185ff366f95b362f0d73538d2e553.json
"
,
"
name
"
:
"
OP_SB1_459612_U1L4_20(1)_ske.json
"
},
"
texJsonData
"
:{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/2b2b56ee758ff7cbeb75d7a912262b51.json
"
,
"
name
"
:
"
OP_SB1_459612_U1L4_20(1)_tex.json
"
},
"
texPngData
"
:{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/f57f002e14275cf7e5010ed8cd562ad8.png
"
,
"
name
"
:
"
OP_SB1_459612_U1L4_20(1)_tex.png
"
}}}]}
\ No newline at end of file
export
const
DefaultData
=
{
"
haveCover
"
:
true
,
"
coverType
"
:
"
Spine
"
,
"
coverImage
"
:
""
,
"
coverAudio
"
:
""
,
"
coverText
"
:
""
,
"
coverDragonBone
"
:{
"
skeJsonData
"
:{
"
url
"
:
""
},
"
texJsonData
"
:{
"
url
"
:
""
},
"
texPngData
"
:{
"
url
"
:
""
}},
"
titleAudio
"
:
""
,
"
titleText
"
:
""
,
"
titleTextColor
"
:
"
A
"
,
"
pageList
"
:[{
"
pageType
"
:
"
Spine
"
,
"
pageAudio
"
:
"
http://staging-teach.cdn.ireadabc.com/784cd4188bf126d6c3c9395d9a807619.mp3
"
,
"
pageText
"
:
""
,
"
pageImage
"
:
""
,
"
textColor
"
:
"
A
"
,
"
pageDragonBone
"
:{
"
skeJsonData
"
:{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/7f2602a24e309e510c73c53a96fe6b6e.json
"
,
"
name
"
:
"
1_ske.json
"
},
"
texJsonData
"
:{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/71800e266bff929bbc06c156baa1d9b6.json
"
,
"
name
"
:
"
1_tex.json
"
},
"
texPngData
"
:{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/123ba3640cc3501f65a2e439b9238d43.png
"
,
"
name
"
:
"
1_tex.png
"
}}},{
"
pageType
"
:
"
Image
"
,
"
pageAudio
"
:
"
http://staging-teach.cdn.ireadabc.com/7934cdcec68eabe639020bad5420d7f8.mp3
"
,
"
pageText
"
:
""
,
"
pageImage
"
:
""
,
"
textColor
"
:
"
A
"
,
"
pageDragonBone
"
:{
"
skeJsonData
"
:{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/91f721bcab47d4f7fc88841313e7591f.json
"
,
"
name
"
:
"
2_ske.json
"
},
"
texJsonData
"
:{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/f303572b255f15aae1a7851c0c4cb074.json
"
,
"
name
"
:
"
2_tex.json
"
},
"
texPngData
"
:{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/e7dc29de6c8ca1f66615b66ca24693fc.png
"
,
"
name
"
:
"
2_tex.png
"
}}},{
"
pageType
"
:
"
Image
"
,
"
pageAudio
"
:
"
http://staging-teach.cdn.ireadabc.com/0b42398a12e1b2f075e9965e4d608765.mp3
"
,
"
pageText
"
:
""
,
"
pageImage
"
:
""
,
"
textColor
"
:
"
A
"
,
"
pageDragonBone
"
:{
"
skeJsonData
"
:{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/cf3dac07b0b20faf1c5fab87258d4f38.json
"
,
"
name
"
:
"
4_ske.json
"
},
"
texJsonData
"
:{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/b68c639ed3b5eaebbc0413a12d234ae7.json
"
,
"
name
"
:
"
4_tex.json
"
},
"
texPngData
"
:{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/f021d176ce4c395ec0f61ca6f166923d.png
"
,
"
name
"
:
"
4_tex.png
"
}}}]}
\ No newline at end of file
play/assets/OP13/script/ItemPage.js
View file @
d47f89a4
...
...
@@ -118,8 +118,8 @@ cc.Class({
if
(
!
size
)
{
return
;
}
let
bgWidth
=
4
77
;
let
bgHeight
=
4
70
;
let
bgWidth
=
4
82
;
let
bgHeight
=
4
89
;
if
(
size
.
width
!=
bgWidth
||
size
.
height
!=
bgHeight
)
{
let
designScale
=
bgWidth
/
bgHeight
;
let
scale
=
size
.
width
/
size
.
height
;
...
...
play/assets/OP13/textures/unpack/bg_book.png
View replaced file @
42778d65
View file @
d47f89a4
This diff is collapsed.
Click to expand it.
play/assets/OP13/textures/unpack/bg_book.png.meta
View file @
d47f89a4
...
...
@@ -8,7 +8,7 @@
"genMipmaps": false,
"packable": true,
"width": 1220,
"height": 8
52
,
"height": 8
88
,
"platformSettings": {},
"subMetas": {
"bg_book": {
...
...
@@ -19,13 +19,13 @@
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY":
6.5
,
"offsetY":
0
,
"trimX": 0,
"trimY": 0,
"width": 1220,
"height":
839
,
"height":
1143
,
"rawWidth": 1220,
"rawHeight":
852
,
"rawHeight":
1143
,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
...
...
play/creator.d.ts
View file @
d47f89a4
This diff is collapsed.
Click to expand it.
play/jsconfig.json
View file @
d47f89a4
{
"compilerOptions"
:
{
"target"
:
"es6"
,
"module"
:
"commonjs"
,
"experimentalDecorators"
:
true
},
"exclude"
:
[
"node_modules"
,
".vscode"
,
"library"
,
"local"
,
"settings"
,
"temp"
]
{
"compilerOptions"
:
{
"target"
:
"es6"
,
"module"
:
"commonjs"
,
"experimentalDecorators"
:
true
},
"exclude"
:
[
"node_modules"
,
".vscode"
,
"library"
,
"local"
,
"settings"
,
"temp"
]
}
\ 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