Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dfzx_ac2
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
dfzx_ac2
Commits
03bf2f34
Commit
03bf2f34
authored
Mar 24, 2021
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resize lion
parent
baf8ff8a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
GameLogic.js
play/assets/tmpGame/script/GameLogic.js
+4
-4
No files found.
play/assets/tmpGame/script/GameLogic.js
View file @
03bf2f34
...
@@ -101,8 +101,8 @@ export default class GameLogic {
...
@@ -101,8 +101,8 @@ export default class GameLogic {
// }})
// }})
node
=
this
.
g_cartoon
.
getNodeByPath
(
`Canvas/lion`
)
node
=
this
.
g_cartoon
.
getNodeByPath
(
`Canvas/lion`
)
node
.
x
=
cc
.
winSize
.
width
/
2
-
1
15
node
.
x
=
cc
.
winSize
.
width
/
2
-
1
40
node
.
y
=
-
cc
.
winSize
.
height
/
2
+
1
35
node
.
y
=
-
cc
.
winSize
.
height
/
2
+
1
00
this
.
m_bubblesAll
.
push
({
node
:
node
,
move
:
{
this
.
m_bubblesAll
.
push
({
node
:
node
,
move
:
{
r
:
90
,
x
:
node
.
x
,
y
:
node
.
y
,
vX
:
0
,
vY
:
0
,
enable
:
true
,
fix
:
true
,
scale
:
1
,
id
:
997
,
lastId
:
null
r
:
90
,
x
:
node
.
x
,
y
:
node
.
y
,
vX
:
0
,
vY
:
0
,
enable
:
true
,
fix
:
true
,
scale
:
1
,
id
:
997
,
lastId
:
null
}})
}})
...
@@ -587,8 +587,8 @@ export default class GameLogic {
...
@@ -587,8 +587,8 @@ export default class GameLogic {
]
]
let
scaleIndex
=
this
.
m_bubblesAll
.
length
<=
15
?
0
:
1
;
let
scaleIndex
=
this
.
m_bubblesAll
.
length
<=
15
?
0
:
1
;
let
startx
=
cc
.
winSize
.
width
/
2
-
1
1
0
let
startx
=
cc
.
winSize
.
width
/
2
-
1
5
0
let
starty
=
-
cc
.
winSize
.
height
/
2
+
1
38
let
starty
=
-
cc
.
winSize
.
height
/
2
+
1
75
const
vArr
=
[
const
vArr
=
[
{
vX
:
-
0.5
,
vY
:
0.5
},
{
vX
:
0.5
,
vY
:
-
0.5
},
{
vX
:
-
0.5
,
vY
:
-
0.5
},
{
vX
:
0.5
,
vY
:
0.5
}
{
vX
:
-
0.5
,
vY
:
0.5
},
{
vX
:
0.5
,
vY
:
-
0.5
},
{
vX
:
-
0.5
,
vY
:
-
0.5
},
{
vX
:
0.5
,
vY
:
0.5
}
]
]
...
...
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