Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dg09_jq
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
dg09_jq
Commits
22cf2ee9
Commit
22cf2ee9
authored
Oct 13, 2022
by
yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
10.13调整
parent
723309df
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
dg09_jq.ts
assets/dg09_jq/scene/dg09_jq.ts
+5
-2
bg.meta
assets/dg09_jq/textures/bg.meta
+12
-0
No files found.
assets/dg09_jq/scene/dg09_jq.ts
View file @
22cf2ee9
...
@@ -214,7 +214,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -214,7 +214,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
iData
.
y
=
item
.
y
;
iData
.
y
=
item
.
y
;
item
.
data
=
iData
;
item
.
data
=
iData
;
let
word
=
cc
.
find
(
"
word
"
,
item
);
let
word
=
cc
.
find
(
"
word
"
,
item
);
word
.
getComponent
(
cc
.
Label
).
string
=
c_d
;
word
.
getComponent
(
cc
.
Label
).
string
=
c_d
||
""
;
word
.
active
=
false
;
word
.
active
=
false
;
this
.
wordItams
.
push
(
item
);
this
.
wordItams
.
push
(
item
);
let
bData
:
any
=
{};
let
bData
:
any
=
{};
...
@@ -222,6 +222,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -222,6 +222,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
bData
.
parent
=
word
.
parent
;
bData
.
parent
=
word
.
parent
;
bData
.
startPos
=
word
.
getPosition
();
bData
.
startPos
=
word
.
getPosition
();
word
.
data
=
bData
;
word
.
data
=
bData
;
word
.
off
(
cc
.
Node
.
EventType
.
TOUCH_START
,
this
.
onBridgeStart
,
this
);
word
.
off
(
cc
.
Node
.
EventType
.
TOUCH_MOVE
,
this
.
onBridgeMove
,
this
);
word
.
off
(
cc
.
Node
.
EventType
.
TOUCH_END
,
this
.
onBridgeEnd
,
this
);
word
.
on
(
cc
.
Node
.
EventType
.
TOUCH_START
,
this
.
onBridgeStart
,
this
);
word
.
on
(
cc
.
Node
.
EventType
.
TOUCH_START
,
this
.
onBridgeStart
,
this
);
word
.
on
(
cc
.
Node
.
EventType
.
TOUCH_MOVE
,
this
.
onBridgeMove
,
this
);
word
.
on
(
cc
.
Node
.
EventType
.
TOUCH_MOVE
,
this
.
onBridgeMove
,
this
);
word
.
on
(
cc
.
Node
.
EventType
.
TOUCH_END
,
this
.
onBridgeEnd
,
this
);
word
.
on
(
cc
.
Node
.
EventType
.
TOUCH_END
,
this
.
onBridgeEnd
,
this
);
...
@@ -331,7 +334,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -331,7 +334,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
let
word
=
cc
.
find
(
"
word
"
,
itemBg
);
let
word
=
cc
.
find
(
"
word
"
,
itemBg
);
word
.
active
=
true
;
word
.
active
=
true
;
//
word.getComponent(cc.Label).string = data.text;
word
.
getComponent
(
cc
.
Label
).
string
=
data
.
text
;
word
.
data
.
CParent
=
data
.
parent
;
word
.
data
.
CParent
=
data
.
parent
;
this
.
playLocalAudio
(
"
move
"
)
this
.
playLocalAudio
(
"
move
"
)
...
...
assets/dg09_jq/textures/bg.meta
0 → 100644
View file @
22cf2ee9
{
"ver": "1.1.2",
"uuid": "f2fd0396-7690-4e94-9d7e-3bb02dad8656",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"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