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
8c5715e7
Commit
8c5715e7
authored
Mar 24, 2021
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix
parent
03bf2f34
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
Scene.fire
play/assets/tmpGame/scene/Scene.fire
+8
-8
GameLogic.js
play/assets/tmpGame/script/GameLogic.js
+2
-2
No files found.
play/assets/tmpGame/scene/Scene.fire
View file @
8c5715e7
...
@@ -210,7 +210,7 @@
...
@@ -210,7 +210,7 @@
"array": [
"array": [
0,
0,
0,
0,
265.83911153990
6,
369.457278429387
6,
0,
0,
0,
0,
0,
0,
...
@@ -450,8 +450,8 @@
...
@@ -450,8 +450,8 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width": 18
5
,
"width": 18
0
,
"height": 2
50
"height": 2
49
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -462,7 +462,7 @@
...
@@ -462,7 +462,7 @@
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
482.23
2,
501.04
2,
-260.569,
-260.569,
0,
0,
0,
0,
...
@@ -524,15 +524,15 @@
...
@@ -524,15 +524,15 @@
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
6.84,
59.614,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
1.7,
1.7,
1
1
]
]
},
},
...
...
play/assets/tmpGame/script/GameLogic.js
View file @
8c5715e7
...
@@ -102,7 +102,7 @@ export default class GameLogic {
...
@@ -102,7 +102,7 @@ export default class GameLogic {
node
=
this
.
g_cartoon
.
getNodeByPath
(
`Canvas/lion`
)
node
=
this
.
g_cartoon
.
getNodeByPath
(
`Canvas/lion`
)
node
.
x
=
cc
.
winSize
.
width
/
2
-
140
node
.
x
=
cc
.
winSize
.
width
/
2
-
140
node
.
y
=
-
cc
.
winSize
.
height
/
2
+
1
0
0
node
.
y
=
-
cc
.
winSize
.
height
/
2
+
1
2
0
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
}})
}})
...
@@ -588,7 +588,7 @@ export default class GameLogic {
...
@@ -588,7 +588,7 @@ 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
-
150
let
startx
=
cc
.
winSize
.
width
/
2
-
150
let
starty
=
-
cc
.
winSize
.
height
/
2
+
1
7
5
let
starty
=
-
cc
.
winSize
.
height
/
2
+
1
9
5
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