Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
db-game-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
崔立强
db-game-template
Commits
94b09e6e
Commit
94b09e6e
authored
Feb 20, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
c41ada77
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
exml.json
egret/.wing/exml.json
+5
-2
sceneCtrl.ts
egret/libs/new_wx/ctrls/sceneCtrl.ts
+1
-2
PlayScene.ts
egret/src/playScene/PlayScene.ts
+2
-2
No files found.
egret/.wing/exml.json
View file @
94b09e6e
...
...
@@ -51,7 +51,7 @@
"backgroundY"
:
0
,
"backgroundWidth"
:
-1
,
"backgroundHeight"
:
-1
,
"useBgImage"
:
tru
e
,
"useBgImage"
:
fals
e
,
"useBgColor"
:
true
,
"guideLinesEnabled"
:
false
},
...
...
@@ -67,7 +67,10 @@
"key"
:
"data.currentBallNums"
,
"value"
:
"1"
}
]
],
"useBgImage"
:
false
,
"useBgColor"
:
true
,
"backgroundColor"
:
"#dbdbdb"
},
"168ff8d4b66"
:
{
"backgroundType"
:
"user"
,
...
...
egret/libs/new_wx/ctrls/sceneCtrl.ts
View file @
94b09e6e
...
...
@@ -22,8 +22,7 @@ export default class SceneCtrl {
const
key
=
scene
.
skinKey
.
toLowerCase
();
const
promise
=
Promise
.
all
([
RES
.
getResAsync
(
`
${
key
}
_json`
),
RES
.
getResAsync
(
`
${
key
}
_png`
),
RES
.
getResAsync
(
`
${
key
}
scenebg_jpg`
)]);
RES
.
getResAsync
(
`
${
key
}
_png`
)]);
promise
.
then
(()
=>
{
this
.
showAfterLoadAtlas
(
scene
,
data
,
onComplete
);
});
...
...
egret/src/playScene/PlayScene.ts
View file @
94b09e6e
...
...
@@ -139,7 +139,7 @@ export default class PlayScene extends Scene {
const
{
blocksInfo
,
specialBallPosition
}
=
getBlocks
(
this
.
ballCountAll
);
console
.
log
(
blocksInfo
,
specialBallPosition
);
if
(
specialBallPosition
>
-
1
)
{
createSpeialCircle
(
this
,
getLadderHPosition
(
specialBallPosition
),
getLadderPosition
(
LADDER_NUMS
-
1
),
0
);
createSpeialCircle
(
this
,
getLadderHPosition
(
specialBallPosition
),
getLadderPosition
(
LADDER_NUMS
-
1
),
0
);
}
for
(
const
block
of
blocksInfo
)
{
const
{
position
,
type
,
nums
}
=
block
;
...
...
@@ -456,7 +456,7 @@ export default class PlayScene extends Scene {
checkGameOver
()
{
this
[
'pause'
]
=
true
;
const
num
=
window
[
'revivePlugId'
];
console
.
log
(
DataManager
.
ins
.
getPrizeInfoList
[
num
])
//
console.log(DataManager.ins.getPrizeInfoList[num])
const
costCredits
=
DataManager
.
ins
.
getPrizeInfoList
[
num
].
creditsPrice
||
0
;
const
userCredits
=
DataManager
.
ins
.
getCreditsData
.
consumerCredits
||
0
;
if
(
this
.
reviveTag
||
userCredits
<
costCredits
)
{
//已经复活过了或者钱不够直接死
...
...
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