Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
Sbx_Pronunciation
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
Sbx_Pronunciation
Commits
a7063e42
Commit
a7063e42
authored
Dec 07, 2020
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update scene
parent
c714c7db
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
89 additions
and
172 deletions
+89
-172
Scene.fire
play/assets/tmpGame/scene/Scene.fire
+74
-169
GameLogic.js
play/assets/tmpGame/script/GameLogic.js
+15
-3
No files found.
play/assets/tmpGame/scene/Scene.fire
View file @
a7063e42
This diff is collapsed.
Click to expand it.
play/assets/tmpGame/script/GameLogic.js
View file @
a7063e42
...
@@ -76,11 +76,23 @@ export default class GameLogic {
...
@@ -76,11 +76,23 @@ export default class GameLogic {
}
}
initBg
()
{
initBg
()
{
console
.
log
(
this
.
g_formData
.
theme
)
const
bgNode_A
=
cc
.
find
(
'
Canvas/bgMain/bg_A
'
);
const
bgNode_A
=
cc
.
find
(
'
Canvas/bgMain/bg_A
'
);
bgNode_A
.
scale
=
this
.
g_systemOption
.
mapScaleMax
;
bgNode_A
.
scale
=
this
.
g_systemOption
.
mapScaleMax
;
// bgNode_A.height = cc.winSize.height;
if
(
this
.
g_formData
.
theme
==
"
A
"
)
{
// bgNode_A.width = cc.winSize.width;
bgNode_A
.
active
=
true
;
console
.
log
(
bgNode_A
.
height
,
bgNode_A
.
width
)
}
else
{
bgNode_A
.
active
=
false
;
}
const
bgNode_D
=
cc
.
find
(
'
Canvas/bgMain/bg_D
'
);
bgNode_D
.
scale
=
this
.
g_systemOption
.
mapScaleMax
;
if
(
this
.
g_formData
.
theme
==
"
A
"
)
{
bgNode_D
.
active
=
true
;
}
else
{
bgNode_D
.
active
=
false
;
}
}
}
resetPosition
()
{
resetPosition
()
{
...
...
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