Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hy14_pipei
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
hy14_pipei
Commits
454ec561
Commit
454ec561
authored
Jul 18, 2023
by
yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
11da389a
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
898 additions
and
579 deletions
+898
-579
right_hy14_pipei.mp3
assets/hy14_pipei/audios/right_hy14_pipei.mp3
+0
-0
right_hy14_pipei.mp3.meta
assets/hy14_pipei/audios/right_hy14_pipei.mp3.meta
+1
-1
Game_hy14_pipei.ts
assets/hy14_pipei/scene/Game_hy14_pipei.ts
+1
-1
hy14_pipei.fire
assets/hy14_pipei/scene/hy14_pipei.fire
+738
-573
hy14_pipei.ts
assets/hy14_pipei/scene/hy14_pipei.ts
+15
-2
defaultData_hy14_pipei.ts
assets/hy14_pipei/script/defaultData_hy14_pipei.ts
+107
-2
bgb.jpg
assets/hy14_pipei/textures/bgb.jpg
+0
-0
bgb.jpg.meta
assets/hy14_pipei/textures/bgb.jpg.meta
+36
-0
No files found.
assets/hy14_pipei/audios/right_hy14_pipei.mp3
View file @
454ec561
No preview for this file type
assets/hy14_pipei/audios/right_hy14_pipei.mp3.meta
View file @
454ec561
...
...
@@ -2,6 +2,6 @@
"ver": "2.0.1",
"uuid": "3732de27-2694-4f6c-9792-666538fc1d94",
"downloadMode": 0,
"duration":
2.220417
,
"duration":
1.38449
,
"subMetas": {}
}
\ No newline at end of file
assets/hy14_pipei/scene/Game_hy14_pipei.ts
View file @
454ec561
...
...
@@ -131,7 +131,7 @@ export default class Game {
public
pointsArr
;
public
changepoints
(
wh
:
any
)
{
let
data
=
this
.
data
;
if
(
wh
.
w
>
1
15
0
)
{
if
(
wh
.
w
>
1
30
0
)
{
imageZize
.
width
=
1150
;
let
sx
=
imageZize
.
width
/
wh
.
w
;
imageZize
.
height
=
wh
.
h
*
sx
;
...
...
assets/hy14_pipei/scene/hy14_pipei.fire
View file @
454ec561
This diff is collapsed.
Click to expand it.
assets/hy14_pipei/scene/hy14_pipei.ts
View file @
454ec561
...
...
@@ -40,6 +40,9 @@ export default class PuzzleJigsaw extends MyCocosSceneComponent {
@
property
(
cc
.
Node
)
item
:
cc
.
Node
=
null
;
@
property
(
cc
.
Node
)
item_op
:
cc
.
Node
=
null
;
private
initListener
()
{
...
...
@@ -93,6 +96,7 @@ export default class PuzzleJigsaw extends MyCocosSceneComponent {
itembg
.
width
=
imageZize
.
width
;
itembg
.
height
=
imageZize
.
height
;
this
.
creaetPosPic
();
itembg
.
x
=
-
itembg
.
width
/
2
;
});
this
.
createCrads
();
}
...
...
@@ -143,9 +147,18 @@ export default class PuzzleJigsaw extends MyCocosSceneComponent {
this
.
layout_op
.
removeAllChildren
();
let
op
=
Game
.
getIns
().
opdata
;
let
item
=
cc
.
instantiate
(
this
.
item_op
);
op
.
forEach
((
dt
,
idx
)
=>
{
let
ch
=
this
.
layout_op
.
children
[
idx
];
if
(
idx
%
8
==
0
)
{
item
=
cc
.
instantiate
(
this
.
item_op
);
item
.
active
=
true
;
item
.
parent
=
this
.
layout_op
;
}
let
id
=
idx
%
8
;
let
ch
=
item
.
children
[
id
];
this
.
log
(
id
)
if
(
!
ch
)
return
;
ch
.
active
=
true
;
let
desc
=
cc
.
find
(
"
desc
"
,
ch
);
...
...
@@ -258,7 +271,7 @@ export default class PuzzleJigsaw extends MyCocosSceneComponent {
// let dis = this.getDistances(target.getPosition(), bg.getPosition());
let
dis
=
this
.
getDistances
(
target
,
bg
);
// if (dis < 100 && bg.sortId == data.id) {
if
(
dis
<
100
)
{
if
(
dis
<
100
&&
bg
.
data
.
text
==
data
.
text
)
{
return
bg
;
}
return
null
;
...
...
assets/hy14_pipei/script/defaultData_hy14_pipei.ts
View file @
454ec561
...
...
@@ -142,6 +142,32 @@ export const defaultData = {
"
y
"
:
362.59
}
},
{
"
id
"
:
"
1689340909231
"
,
"
index
"
:
5
,
"
text
"
:
"
ox
"
,
"
audio_url
"
:
"
http://teach.cdn.ireadabc.com/be05161de62ae50ce79f4dca0f8cb0f6_l.mp3
"
,
"
itemType
"
:
"
text
"
,
"
fontScale
"
:
0.7046875
,
"
imgScale
"
:
1
,
"
imgSizeW
"
:
0
,
"
imgSizeH
"
:
0
,
"
mapScale
"
:
0.7046875
,
"
dragDot
"
:
{
"
x
"
:
451
,
"
y
"
:
190
},
"
gIdx
"
:
"
0
"
,
"
fontSize
"
:
50
,
"
fontName
"
:
"
ahronbd-1
"
,
"
ontColor
"
:
"
#8f3758
"
,
"
rect
"
:
{
"
width
"
:
38.58
,
"
height
"
:
35.23
,
"
x
"
:
134.17
,
"
y
"
:
451.11
}
},
{
"
id
"
:
"
1689340915577
"
,
"
index
"
:
6
,
...
...
@@ -220,9 +246,88 @@ export const defaultData = {
"
y
"
:
193.48
}
},
{
"
id
"
:
"
1689340940251
"
,
"
index
"
:
9
,
"
text
"
:
"
dragon
"
,
"
audio_url
"
:
"
http://teach.cdn.ireadabc.com/a835e6f9c863dcedbcc582a8bb650233_l.mp3
"
,
"
itemType
"
:
"
text
"
,
"
fontScale
"
:
0.7046875
,
"
imgScale
"
:
1
,
"
imgSizeW
"
:
0
,
"
imgSizeH
"
:
0
,
"
mapScale
"
:
0.7046875
,
"
dragDot
"
:
{
"
x
"
:
451
,
"
y
"
:
190
},
"
gIdx
"
:
"
0
"
,
"
fontSize
"
:
50
,
"
fontName
"
:
"
ahronbd-1
"
,
"
ontColor
"
:
"
#8f3758
"
,
"
rect
"
:
{
"
width
"
:
114.36
,
"
height
"
:
35.23
,
"
x
"
:
595.99
,
"
y
"
:
281.32
}
},
{
"
id
"
:
"
1689340948390
"
,
"
index
"
:
10
,
"
text
"
:
"
rabbit
"
,
"
audio_url
"
:
"
http://teach.cdn.ireadabc.com/c727e329a390e810f262b2b2baca481d_l.mp3
"
,
"
itemType
"
:
"
text
"
,
"
fontScale
"
:
0.7046875
,
"
imgScale
"
:
1
,
"
imgSizeW
"
:
0
,
"
imgSizeH
"
:
0
,
"
mapScale
"
:
0.7046875
,
"
dragDot
"
:
{
"
x
"
:
451
,
"
y
"
:
190
},
"
gIdx
"
:
"
0
"
,
"
fontSize
"
:
50
,
"
fontName
"
:
"
ahronbd-1
"
,
"
ontColor
"
:
"
#8f3758
"
,
"
rect
"
:
{
"
width
"
:
95.37
,
"
height
"
:
35.23
,
"
x
"
:
611.23
,
"
y
"
:
366.88
}
},
{
"
id
"
:
"
1689340965671
"
,
"
index
"
:
11
,
"
text
"
:
"
tiger
"
,
"
audio_url
"
:
"
http://teach.cdn.ireadabc.com/19802431d0d48cf492591c4a2388c76a_l.mp3
"
,
"
itemType
"
:
"
text
"
,
"
fontScale
"
:
0.7046875
,
"
imgScale
"
:
1
,
"
imgSizeW
"
:
0
,
"
imgSizeH
"
:
0
,
"
mapScale
"
:
0.7046875
,
"
dragDot
"
:
{
"
x
"
:
451
,
"
y
"
:
190
},
"
gIdx
"
:
"
0
"
,
"
fontSize
"
:
50
,
"
fontName
"
:
"
ahronbd-1
"
,
"
ontColor
"
:
"
#8f3758
"
,
"
rect
"
:
{
"
width
"
:
74.76
,
"
height
"
:
35.23
,
"
x
"
:
603.26
,
"
y
"
:
452.38
}
}
],
"
npcTitle
"
:
"
Mind Map
"
,
"
npcAudio
"
:
"
http://teach.cdn.ireadabc.com/840c5d814e82b8dbc869d7523d592869_l.mp3
"
,
"
npcAudio
"
:
""
,
// "npcAudio": "http://teach.cdn.ireadabc.com/840c5d814e82b8dbc869d7523d592869_l.mp3",
"
npcAudioName
"
:
"
HY14位置匹配-将单词拖动到正确的位置.mp3
"
,
"
questionText
"
:
""
}
}
\ No newline at end of file
assets/hy14_pipei/textures/bgb.jpg
0 → 100644
View file @
454ec561
40.8 KB
assets/hy14_pipei/textures/bgb.jpg.meta
0 → 100644
View file @
454ec561
{
"ver": "2.3.5",
"uuid": "2ecdb066-ae76-41fc-a802-dddcc9605463",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1920,
"height": 1080,
"platformSettings": {},
"subMetas": {
"bgb": {
"ver": "1.0.4",
"uuid": "43e0afbc-174b-46a2-9af0-21a50c77b965",
"rawTextureUuid": "2ecdb066-ae76-41fc-a802-dddcc9605463",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1920,
"height": 1080,
"rawWidth": 1920,
"rawHeight": 1080,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ 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