Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OP_18
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
OP_18
Commits
81058fdf
Commit
81058fdf
authored
Dec 14, 2021
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 适配窗口
parent
03c59257
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
535 deletions
+29
-535
OP_18.js
assets/OP_18/scene/OP_18.js
+23
-8
OP_18_.js
assets/OP_18/scene/OP_18_.js
+6
-527
No files found.
assets/OP_18/scene/OP_18.js
View file @
81058fdf
...
...
@@ -431,20 +431,28 @@ cc.Class({
const
letterS
=
this
.
data
.
letter
.
toLowerCase
();
const
itemLetterBig
=
getSprNode
(
'
letter/
'
+
letterS
+
'
_1_1
'
);
itemLetterBig
.
x
=
-
this
.
canvas
.
width
/
2
+
70
*
this
.
_mapScaleMin
;
itemLetterBig
.
y
=
200
*
this
.
_mapScaleMin
;
//
itemLetterBig.x = -this.canvas.width / 2 + 70 * this._mapScaleMin;
//
itemLetterBig.y = 200 * this._mapScaleMin;
itemLetterBig
.
scale
=
this
.
_mapScaleMin
;
itemLetterBig
.
anchorY
=
0.28
this
.
canvas
.
addChild
(
itemLetterBig
);
const
itemBgBig
=
getSprNode
(
'
item_bg
'
);
itemBgBig
.
scale
=
this
.
_mapScaleMin
;
itemBgBig
.
x
=
itemLetterBig
.
x
+
70
*
this
.
_mapScaleMin
;
itemBgBig
.
y
=
itemLetterBig
.
y
;
//
itemBgBig.x = itemLetterBig.x + 70 * this._mapScaleMin;
//
itemBgBig.y = itemLetterBig.y;
itemBgBig
.
anchorX
=
0
;
this
.
canvas
.
addChild
(
itemBgBig
);
this
.
itemBgBig
=
itemBgBig
;
const
letterW
=
50
*
this
.
_mapScaleMin
;
itemBgBig
.
x
=
-
itemBgBig
.
width
/
2
*
itemBgBig
.
scaleX
+
letterW
;
itemBgBig
.
y
=
200
*
this
.
_mapScaleMin
;
itemLetterBig
.
x
=
itemBgBig
.
x
-
letterW
;
itemLetterBig
.
y
=
itemBgBig
.
y
;
const
letterAnim0
=
this
.
getLetterAnimBig0
(
letterS
);
letterAnim0
.
x
=
100
;
...
...
@@ -472,20 +480,27 @@ cc.Class({
const
letterS
=
this
.
data
.
letter
.
toLowerCase
();
const
itemLetterSmall
=
getSprNode
(
'
letter/
'
+
letterS
+
'
_0_1
'
);
itemLetterSmall
.
x
=
-
this
.
canvas
.
width
/
2
+
70
*
this
.
_mapScaleMin
;
itemLetterSmall
.
y
=
-
30
*
this
.
_mapScaleMin
;
//
itemLetterSmall.x = -this.canvas.width / 2 + 70 * this._mapScaleMin;
//
itemLetterSmall.y = -30 * this._mapScaleMin;
itemLetterSmall
.
scale
=
this
.
_mapScaleMin
;
this
.
canvas
.
addChild
(
itemLetterSmall
);
const
itemBgSmall
=
getSprNode
(
'
item_bg
'
);
itemBgSmall
.
scale
=
this
.
_mapScaleMin
;
itemBgSmall
.
x
=
itemLetterSmall
.
x
+
70
*
this
.
_mapScaleMin
;
itemBgSmall
.
y
=
itemLetterSmall
.
y
;
//
itemBgSmall.x = itemLetterSmall.x + 70 * this._mapScaleMin;
//
itemBgSmall.y = itemLetterSmall.y;
itemBgSmall
.
anchorX
=
0
;
this
.
canvas
.
addChild
(
itemBgSmall
);
this
.
itemBgSmall
=
itemBgSmall
;
const
letterW
=
50
*
this
.
_mapScaleMin
;
itemBgSmall
.
x
=
-
itemBgSmall
.
width
/
2
*
itemBgSmall
.
scaleX
+
letterW
;
itemBgSmall
.
y
=
-
30
*
this
.
_mapScaleMin
;
itemLetterSmall
.
x
=
itemBgSmall
.
x
-
letterW
;
itemLetterSmall
.
y
=
itemBgSmall
.
y
;
const
letterAnim0
=
this
.
getLetterAnimSmall0
(
letterS
);
letterAnim0
.
x
=
100
;
letterAnim0
.
y
=
0
;
...
...
assets/OP_18/scene/OP_18_.js
View file @
81058fdf
This diff is collapsed.
Click to expand it.
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