Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
east-10
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
east-10
Commits
0ffa12fd
Commit
0ffa12fd
authored
Jun 30, 2021
by
linzhiguo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# 不再删除正确选项
parent
7512accf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
east-10.js
play/assets/east-10/scene/east-10.js
+5
-4
No files found.
play/assets/east-10/scene/east-10.js
View file @
0ffa12fd
...
...
@@ -203,8 +203,6 @@ cc.Class({
this
.
addStar
();
}
console
.
log
(
this
.
data
);
this
.
_speed
=
Math
.
max
(
2
,
2
/
1280
*
this
.
_frameSize
.
width
);
...
...
@@ -254,7 +252,7 @@ cc.Class({
for
(
let
i
=
0
;
i
<
area
.
childrenCount
;
i
++
){
let
option_node
=
area
.
children
[
i
];
let
option
=
option_node
.
getComponent
(
cc
.
js
.
getClassByName
(
'
WordOption
'
));
if
(
this
.
_touched
!=
true
&&
cc
.
rect
(
option_node
.
getBoundingBoxToWorld
()).
contains
(
event
.
touch
.
_point
)){
if
(
this
.
_touched
!=
true
&&
option_node
.
active
==
true
&&
cc
.
rect
(
option_node
.
getBoundingBoxToWorld
()).
contains
(
event
.
touch
.
_point
)){
this
.
playAudioByName
(
'
tap
'
);
// cc.tween(this)
// .delay(0.2)
...
...
@@ -335,7 +333,8 @@ cc.Class({
// .start();
//this._xs[i%2] += selected.target._w;
selected
.
target
.
removeFromParent
();
selected
.
target
.
active
=
false
;
//selected.target.removeFromParent();
selected
.
target
=
null
;
...
...
@@ -688,6 +687,8 @@ cc.Class({
let
item
,
op
,
len
=
this
.
_move_area
.
childrenCount
;
for
(
let
i
=
0
;
i
<
len
;
i
++
){
item
=
this
.
_move_area
.
children
[
i
];
if
(
item
.
active
==
false
)
continue
;
op
=
item
.
getComponent
(
cc
.
js
.
getClassByName
(
'
WordOption
'
));
if
(
op
.
kind_id
>=
0
){
return
false
;
...
...
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