Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OP48
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
OP48
Commits
d9f533c3
Commit
d9f533c3
authored
Aug 12, 2022
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改默认背景
parent
57f256ac
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
466 additions
and
621 deletions
+466
-621
MuliBold_YzEVy.ttf
assets/OP48/fonts/MuliBold_YzEVy.ttf
+0
-0
MuliBold_YzEVy.ttf.meta
assets/OP48/fonts/MuliBold_YzEVy.ttf.meta
+5
-0
OP48.fire
assets/OP48/scene/OP48.fire
+416
-529
OP48.fire.meta
assets/OP48/scene/OP48.fire.meta
+1
-1
OP48.js
assets/OP48/scene/OP48.js
+35
-81
gameManager.js
assets/OP48/scene/gameManager.js
+0
-1
defaultData.js
assets/OP48/script/defaultData.js
+3
-3
bg_book.png
assets/OP48/textures/read/bg_book.png
+0
-0
bg_book.png.meta
assets/OP48/textures/read/bg_book.png.meta
+6
-6
No files found.
assets/OP48/fonts/MuliBold_YzEVy.ttf
0 → 100644
View file @
d9f533c3
File added
assets/OP48/fonts/MuliBold_YzEVy.ttf.meta
0 → 100644
View file @
d9f533c3
{
"ver": "1.1.0",
"uuid": "403672de-6e99-4459-baea-083e941d41ae",
"subMetas": {}
}
\ No newline at end of file
assets/OP48/scene/OP48.fire
View file @
d9f533c3
This diff is collapsed.
Click to expand it.
assets/OP48/scene/OP48.fire.meta
View file @
d9f533c3
{
"ver": "1.2.
9
",
"ver": "1.2.
8
",
"uuid": "d0944338-a5a6-44e9-bd37-eb928c715bd4",
"asyncLoadAssets": false,
"autoReleaseAssets": true,
...
...
assets/OP48/scene/OP48.js
View file @
d9f533c3
...
...
@@ -339,7 +339,7 @@ cc.Class({
this
.
playRecordAudio
();
})
let
bg_book2
=
pg
.
view
.
find
(
this
,
"
bg_book2
"
);
pg
.
view
.
setNetImg
(
bg_book2
,
this
.
_stageData
.
img
,
{
w
:
1208
,
h
:
322
});
pg
.
view
.
setNetImg
(
bg_book2
,
this
.
_stageData
.
img
,
{
w
:
2056
,
h
:
537
});
// this._timeoutIds.push(setTimeout(() => {
// pg.view.visible(icon_hand, true);
// let action = cc.tween(icon_hand);
...
...
@@ -641,87 +641,41 @@ cc.Class({
wordAni
(
item
,
content
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
if
(
this
.
_stageData
.
isLast
)
{
item
.
active
=
true
;
let
itemfirst
=
pg
.
view
.
find
(
item
,
"
last
"
);
let
itemOther
=
pg
.
view
.
find
(
item
,
"
first
"
);
itemfirst
.
active
=
true
;
itemOther
.
active
=
false
;
//动态居中算法。
//锚点在中间,左右延长,第一个字不去显示
let
contentArr
=
content
.
split
(
""
);
let
s0
=
contentArr
.
pop
();
let
s1
=
contentArr
.
join
(
""
);
//首字母变大
let
count
=
80
;
let
max
=
120
;
let
str1
=
`<size=
${
count
}
><color=#0000>
${
s1
}
</color></size>`
+
`<size=
${
max
}
><color=#ffffff>
${
s0
}
</color></size>`
let
strfirst1
=
`<size=
${
max
}
><color=#fc4a4a>
${
s0
}
</color></size>`
;
item
.
getComponent
(
cc
.
RichText
).
string
=
str1
;
itemfirst
.
y
=
17
;
itemfirst
.
getComponent
(
cc
.
RichText
).
string
=
strfirst1
;
item
.
active
=
true
;
let
itemfirst
=
pg
.
view
.
find
(
item
,
"
first
"
);
//动态居中算法。
//锚点在中间,左右延长,第一个字不去显示
let
contentArr
=
content
.
split
(
""
);
let
s0
=
contentArr
.
shift
();
let
s1
=
contentArr
.
join
(
""
);
//首字母变大
let
count
=
80
;
let
max
=
120
;
let
str1
=
`<size=
${
max
}
><color=#ffffff>
${
s0
}
</color></size><size=
${
count
}
><color=#0000>
${
s1
}
</color></size>`
let
strfirst1
=
`<size=
${
max
}
><color=#fc4a4a>
${
s0
}
</color></size>`
;
item
.
getComponent
(
cc
.
RichText
).
string
=
str1
;
itemfirst
.
y
=
17
;
itemfirst
.
getComponent
(
cc
.
RichText
).
string
=
strfirst1
;
this
.
_timeoutIds
.
push
(
setTimeout
(()
=>
{
let
times
=
20
;
let
time
=
0
;
let
inter
=
setInterval
(()
=>
{
time
++
;
let
nowCount
=
count
+
(
max
-
count
)
*
(
time
/
times
);
if
(
nowCount
>=
120
)
{
nowCount
=
120
;
clearInterval
(
inter
);
}
let
str2
=
`<size=
${
nowCount
}
><color=#0000>
${
s1
}
</color></size>`
+
`<size=
${
max
}
><color=#ffffff>
${
s0
}
</color></size>`
itemfirst
.
y
=
0
;
item
.
getComponent
(
cc
.
RichText
).
string
=
str2
;
},
30
);
this
.
_intervalIds
.
push
(
inter
);
setTimeout
(()
=>
{
resolve
(
''
);
},
1200
);
},
4100
));
}
else
{
item
.
active
=
true
;
let
itemfirst
=
pg
.
view
.
find
(
item
,
"
first
"
);
let
itemOther
=
pg
.
view
.
find
(
item
,
"
last
"
);
itemfirst
.
active
=
true
;
itemOther
.
active
=
false
;
//动态居中算法。
//锚点在中间,左右延长,第一个字不去显示
let
contentArr
=
content
.
split
(
""
);
let
s0
=
contentArr
.
shift
();
let
s1
=
contentArr
.
join
(
""
);
//首字母变大
let
count
=
80
;
let
max
=
120
;
let
str1
=
`<size=
${
max
}
><color=#ffffff>
${
s0
}
</color></size><size=
${
count
}
><color=#0000>
${
s1
}
</color></size>`
let
strfirst1
=
`<size=
${
max
}
><color=#fc4a4a>
${
s0
}
</color></size>`
;
item
.
getComponent
(
cc
.
RichText
).
string
=
str1
;
itemfirst
.
y
=
17
;
itemfirst
.
getComponent
(
cc
.
RichText
).
string
=
strfirst1
;
this
.
_timeoutIds
.
push
(
setTimeout
(()
=>
{
let
times
=
20
;
let
time
=
0
;
let
inter
=
setInterval
(()
=>
{
time
++
;
let
nowCount
=
count
+
(
max
-
count
)
*
(
time
/
times
);
if
(
nowCount
>=
120
)
{
nowCount
=
120
;
clearInterval
(
inter
);
}
let
str2
=
`<size=
${
max
}
><color=#ffffff>
${
s0
}
</color></size><size=
${
nowCount
}
><color=#0000>
${
s1
}
</color></size>`
itemfirst
.
y
=
0
;
item
.
getComponent
(
cc
.
RichText
).
string
=
str2
;
},
30
);
this
.
_intervalIds
.
push
(
inter
);
setTimeout
(()
=>
{
resolve
(
''
);
},
1200
);
},
4100
));
}
this
.
_timeoutIds
.
push
(
setTimeout
(()
=>
{
let
times
=
20
;
let
time
=
0
;
let
inter
=
setInterval
(()
=>
{
time
++
;
let
nowCount
=
count
+
(
max
-
count
)
*
(
time
/
times
);
if
(
nowCount
>=
120
)
{
nowCount
=
120
;
clearInterval
(
inter
);
}
let
str2
=
`<size=
${
max
}
><color=#ffffff>
${
s0
}
</color></size><size=
${
nowCount
}
><color=#0000>
${
s1
}
</color></size>`
itemfirst
.
y
=
0
;
item
.
getComponent
(
cc
.
RichText
).
string
=
str2
;
},
30
);
this
.
_intervalIds
.
push
(
inter
);
setTimeout
(()
=>
{
resolve
(
''
);
},
1200
);
},
4100
));
});
},
...
...
assets/OP48/scene/gameManager.js
View file @
d9f533c3
...
...
@@ -35,7 +35,6 @@ class GameManager {
obj
.
word
=
ar
.
title
;
obj
.
sound
=
ar
.
wordAudio
;
obj
.
img
=
ar
.
bgImg
;
obj
.
isLast
=
ar
.
isLast
||
false
;
obj
.
cartoonSke
=
ar
.
imgAni
.
ske
.
url
;
obj
.
cartoonTex
=
ar
.
imgAni
.
tex
.
url
;
obj
.
cartoonPng
=
ar
.
imgAni
.
png
.
url
;
...
...
assets/OP48/script/defaultData.js
View file @
d9f533c3
...
...
@@ -13,11 +13,11 @@ export const defaultData = {
},
"
list
"
:
[
{
"
isLast
"
:
true
,
"
title
"
:
"
appleappl
"
,
"
bgImg
"
:
"
http://staging-teach.cdn.ireadabc.com/97e19da9309e4e5aafca5ea2e9db8f46.png
"
,
"
wordAudio
"
:
"
http://staging-teach.cdn.ireadabc.com/ab3538f7d4d57ac1abd740bd32f06b2d.mp3
"
,
"
imgAni
"
:
{
"
ske
"
:
{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/c81816bbb714b22c57267ac5150ee1fe.json
"
,
"
name
"
:
"
apple_ske.json
"
},
"
tex
"
:
{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/6088eec0273bc0488d5f66dfb63c1003.json
"
,
"
name
"
:
"
apple_tex.json
"
},
"
png
"
:
{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/a51151d68bd74d430e2e586d86c6ddd3.png
"
,
"
name
"
:
"
apple_tex.png
"
}
}
"
title
"
:
"
appleappl
"
,
"
bgImg
"
:
"
http://staging-teach.cdn.ireadabc.com/97e19da9309e4e5aafca5ea2e9db8f46.png
"
,
"
wordAudio
"
:
"
http://staging-teach.cdn.ireadabc.com/ab3538f7d4d57ac1abd740bd32f06b2d.mp3
"
,
"
imgAni
"
:
{
"
ske
"
:
{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/c81816bbb714b22c57267ac5150ee1fe.json
"
,
"
name
"
:
"
apple_ske.json
"
},
"
tex
"
:
{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/6088eec0273bc0488d5f66dfb63c1003.json
"
,
"
name
"
:
"
apple_tex.json
"
},
"
png
"
:
{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/a51151d68bd74d430e2e586d86c6ddd3.png
"
,
"
name
"
:
"
apple_tex.png
"
}
}
},
{
"
isLast
"
:
false
,
"
title
"
:
"
ant
"
,
"
bgImg
"
:
"
http://staging-teach.cdn.ireadabc.com/0600790c4336c3839d90756aca5da45e.png
"
,
"
wordAudio
"
:
"
http://staging-teach.cdn.ireadabc.com/ab3538f7d4d57ac1abd740bd32f06b2d.mp3
"
,
"
imgAni
"
:
{
"
ske
"
:
{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/dd4ede22a761f1f8ec261c93a5306f5c.json
"
,
"
name
"
:
"
ant_ske.json
"
},
"
tex
"
:
{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/56078bcdcc7116843a56ecc4c23d3665.json
"
,
"
name
"
:
"
ant_tex.json
"
},
"
png
"
:
{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/1a0c95cab05487b003a8dec9dd151ba4.png
"
,
"
name
"
:
"
ant_tex.png
"
}
}
"
title
"
:
"
ant
"
,
"
bgImg
"
:
"
http://staging-teach.cdn.ireadabc.com/0600790c4336c3839d90756aca5da45e.png
"
,
"
wordAudio
"
:
"
http://staging-teach.cdn.ireadabc.com/ab3538f7d4d57ac1abd740bd32f06b2d.mp3
"
,
"
imgAni
"
:
{
"
ske
"
:
{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/dd4ede22a761f1f8ec261c93a5306f5c.json
"
,
"
name
"
:
"
ant_ske.json
"
},
"
tex
"
:
{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/56078bcdcc7116843a56ecc4c23d3665.json
"
,
"
name
"
:
"
ant_tex.json
"
},
"
png
"
:
{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/1a0c95cab05487b003a8dec9dd151ba4.png
"
,
"
name
"
:
"
ant_tex.png
"
}
}
},
{
"
isLast
"
:
true
,
"
title
"
:
"
allaign
"
,
"
bgImg
"
:
"
http://staging-teach.cdn.ireadabc.com/97e19da9309e4e5aafca5ea2e9db8f46.png
"
,
"
wordAudio
"
:
"
http://staging-teach.cdn.ireadabc.com/ab3538f7d4d57ac1abd740bd32f06b2d.mp3
"
,
"
imgAni
"
:
{
"
ske
"
:
{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/cf0fd816076652f64cc992c084248a80.json
"
,
"
name
"
:
"
alligator_ske.json
"
},
"
tex
"
:
{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/5ece588b347d8fbe05eba19a40c985f0.json
"
,
"
name
"
:
"
alligator_tex.json
"
},
"
png
"
:
{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/a84eff5545eca41f3e997ea8a53ac66f.png
"
,
"
name
"
:
"
alligator_tex.png
"
}
}
"
title
"
:
"
allaign
"
,
"
bgImg
"
:
"
http://staging-teach.cdn.ireadabc.com/97e19da9309e4e5aafca5ea2e9db8f46.png
"
,
"
wordAudio
"
:
"
http://staging-teach.cdn.ireadabc.com/ab3538f7d4d57ac1abd740bd32f06b2d.mp3
"
,
"
imgAni
"
:
{
"
ske
"
:
{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/cf0fd816076652f64cc992c084248a80.json
"
,
"
name
"
:
"
alligator_ske.json
"
},
"
tex
"
:
{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/5ece588b347d8fbe05eba19a40c985f0.json
"
,
"
name
"
:
"
alligator_tex.json
"
},
"
png
"
:
{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/a84eff5545eca41f3e997ea8a53ac66f.png
"
,
"
name
"
:
"
alligator_tex.png
"
}
}
}]
}
}
...
...
assets/OP48/textures/read/bg_book.png
View replaced file @
57f256ac
View file @
d9f533c3
270 KB
|
W:
|
H:
175 KB
|
W:
|
H:
2-up
Swipe
Onion skin
assets/OP48/textures/read/bg_book.png.meta
View file @
d9f533c3
...
...
@@ -7,8 +7,8 @@
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width":
1208
,
"height":
322
,
"width":
2056
,
"height":
537
,
"platformSettings": {},
"subMetas": {
"bg_book": {
...
...
@@ -22,10 +22,10 @@
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width":
1208
,
"height":
322
,
"rawWidth":
1208
,
"rawHeight":
322
,
"width":
2056
,
"height":
537
,
"rawWidth":
2056
,
"rawHeight":
537
,
"borderTop": 0,
"borderBottom": 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