Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
NGT_02
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
NGT_02
Commits
f8e2c066
Commit
f8e2c066
authored
Feb 28, 2022
by
范雪寒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 去黑边
parent
22ce0a3b
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
209 additions
and
276 deletions
+209
-276
NGT_02.fire
assets/NGT_02/scene/NGT_02.fire
+202
-259
NGT_02.js
assets/NGT_02/scene/NGT_02.js
+0
-12
data_mgr.js
assets/NGT_02/script/manager/data_mgr.js
+7
-5
No files found.
assets/NGT_02/scene/NGT_02.fire
View file @
f8e2c066
This diff is collapsed.
Click to expand it.
assets/NGT_02/scene/NGT_02.js
View file @
f8e2c066
...
@@ -50,18 +50,6 @@ var game = cc.Class({
...
@@ -50,18 +50,6 @@ var game = cc.Class({
g
.
Light
.
inst
.
showLight
();
g
.
Light
.
inst
.
showLight
();
},
},
//检查当前缩放倍数
checkScale
:
function
(
num
)
{
var
scale
=
1
;
if
(
num
>
2
&&
num
<=
4
)
{
scale
=
0.74
;
}
if
(
num
>
4
)
{
scale
=
0.65
;
}
return
scale
;
},
//添加节点
//添加节点
addItem
:
function
()
{
addItem
:
function
()
{
let
itemArr
=
g
.
data_mgr
.
getSheepArr
();
let
itemArr
=
g
.
data_mgr
.
getSheepArr
();
...
...
assets/NGT_02/script/manager/data_mgr.js
View file @
f8e2c066
...
@@ -248,13 +248,15 @@ export function initDataMgr_NGT_02() {
...
@@ -248,13 +248,15 @@ export function initDataMgr_NGT_02() {
preload
()
{
preload
()
{
cc
.
assetManager
.
loadAny
(
null
,
null
,
null
,
(
err
,
data
)
=>
{
cc
.
assetManager
.
loadAny
(
null
,
null
,
null
,
(
err
,
data
)
=>
{
window
.
air
.
onCourseInScreen
=
(
next
)
=>
{
if
(
window
&&
window
[
"
air
"
])
{
window
[
"
air
"
].
onCourseInScreen
=
(
next
)
=>
{
//结束回调
//结束回调
this
.
loadEnd
();
this
.
loadEnd
();
next
();
next
();
}
}
if
(
window
&&
window
[
"
air
"
])
{
window
[
"
air
"
].
hideAirClassLoading
();
window
[
"
air
"
].
hideAirClassLoading
();
}
else
{
this
.
loadEnd
();
}
}
cc
.
debug
.
setDisplayStats
(
false
);
cc
.
debug
.
setDisplayStats
(
false
);
});
});
...
...
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