Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
LWD_2
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
LWD_2
Commits
c6c7de31
Commit
c6c7de31
authored
Jun 11, 2021
by
Lwd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aaaa
parent
934dd06d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
Game.fire
play/assets/tmpGame/scene/Game.fire
+1
-1
game.js
play/assets/tmpGame/script/game/game.js
+6
-6
No files found.
play/assets/tmpGame/scene/Game.fire
View file @
c6c7de31
...
...
@@ -180,7 +180,7 @@
"array": [
0,
0,
349.265339016877
3,
278.8601800185892
3,
0,
0,
0,
...
...
play/assets/tmpGame/script/game/game.js
View file @
c6c7de31
...
...
@@ -48,9 +48,9 @@ var game = cc.Class({
// 生命周期 onLoad
onLoad
()
{
//初始化游戏
this
.
initGame
();
//
//
初始化游戏
//
this.initGame();
this
.
UpdataUi
();
if
(
window
.
addEventListener
)
{
window
.
addEventListener
(
'
resize
'
,
this
.
scaleEventCallBack
,
false
)
}
else
if
(
window
.
attachEvent
)
{
...
...
@@ -141,14 +141,14 @@ var game = cc.Class({
//更新界面信息
UpdataUi
:
function
()
{
//获得当前页的关卡
var
itemInfo
=
g
.
data_mgr
.
getPageInfo
();
//
//
获得当前页的关卡
//
var itemInfo = g.data_mgr.getPageInfo();
//第几排的第几个来算这个位置
this
.
resetUI
();
//添加项
this
.
addItem2
(
itemInfo
);
this
.
addItem2
();
// //设置上下页按钮状态
// this.setButtonState();
...
...
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