Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cc_mz_write_01
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
cc_mz_write_01
Commits
f86d1bab
Commit
f86d1bab
authored
May 26, 2022
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: debug
parent
e4088136
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
cc_mz_write_01.js
assets/cc_mz_write_01/scene/cc_mz_write_01.js
+13
-3
No files found.
assets/cc_mz_write_01/scene/cc_mz_write_01.js
View file @
f86d1bab
...
...
@@ -1121,8 +1121,8 @@ cc.Class({
const
tempR
=
scaleRate
*
(
checkLetter
.
unitY
*
unitH
);
const
newR
=
r
-
tempR
;
cons
t
newW
=
w
-
tempR
;
cons
t
newH
=
h
-
tempR
;
le
t
newW
=
w
-
tempR
;
le
t
newH
=
h
-
tempR
;
const
rate
=
newR
/
r
;
...
...
@@ -1135,8 +1135,18 @@ cc.Class({
x
=
x
+
tempX
*
(
1
-
rate
);
// const dot = this.getColorDot(x, -y, newR, newR);
const
newScale
=
1.4
;
const
edgeOff
=
(
newScale
-
1
)
/
2
;
x
-=
edgeOff
*
newW
;
y
-=
edgeOff
*
newH
;
newW
*=
newScale
;
newH
*=
newScale
;
const
dot
=
this
.
getColorDot
(
x
,
-
y
,
newW
,
newH
);
// const dot = this.getColorDot(x, -y, newR, newR);
this
.
debugDrawLayer
.
addChild
(
dot
,
5
);
dot
.
key
=
centerItemArr
[
i
].
index
+
1
;
...
...
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