Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MingSnake_241120
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
SparkProjects
MingSnake_241120
Commits
393643ca
Commit
393643ca
authored
Dec 16, 2024
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
1d0c9d27
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
238 additions
and
194 deletions
+238
-194
MyBagPanel.ts
assets/Scripts/Panels/MyBagPanel.ts
+209
-187
HomeScene.ts
assets/Scripts/Scenes/HomeScene.ts
+1
-1
MainGame.ts
assets/Scripts/Scenes/MainGame/MainGame.ts
+3
-3
gameStore.ts
assets/Scripts/store/gameStore.ts
+4
-2
prizeType.do.json
preview-template/mock/home/prizeType.do.json
+21
-0
records.query.json
preview-template/mock/records.query.json
+0
-1
No files found.
assets/Scripts/Panels/MyBagPanel.ts
View file @
393643ca
This diff is collapsed.
Click to expand it.
assets/Scripts/Scenes/HomeScene.ts
View file @
393643ca
...
...
@@ -156,7 +156,7 @@ export class HomeScene extends Scene {
sendLog
(
LOG_TYPE
.
CLICK
,
5
)
if
(
!
store
.
checkActTime
())
return
;
await
gameStore
.
startGame
();
await
gameStore
.
startGame
(
true
);
changeScene
(
MainGame
);
});
...
...
assets/Scripts/Scenes/MainGame/MainGame.ts
View file @
393643ca
...
...
@@ -166,7 +166,7 @@ export class MainGame extends Scene {
if
(
currentStage
==
1
)
{
const
submitSuc
=
await
gameStore
.
submitOne
();
if
(
submitSuc
)
{
const
gameSuc
=
await
gameStore
.
startGame
();
const
gameSuc
=
await
gameStore
.
startGame
(
false
);
if
(
gameSuc
)
{
await
changeScene
(
MainGame
);
}
else
{
...
...
@@ -179,7 +179,7 @@ export class MainGame extends Scene {
if
(
MainGame
.
ins
.
player
.
length
>=
length
)
{
const
submitSuc
=
await
gameStore
.
submitTwo
();
if
(
submitSuc
)
{
const
gameSuc
=
await
gameStore
.
startGame
();
const
gameSuc
=
await
gameStore
.
startGame
(
false
);
if
(
gameSuc
)
{
await
changeScene
(
MainGame
);
}
else
{
...
...
@@ -278,7 +278,7 @@ export class MainGame extends Scene {
this.isOver = true;
const submitSuc = await gameStore.submitTwo();
if (submitSuc) {
const gameSuc = await gameStore.startGame();
const gameSuc = await gameStore.startGame(
false
);
if (gameSuc) {
await changeScene(MainGame);
} else {
...
...
assets/Scripts/store/gameStore.ts
View file @
393643ca
...
...
@@ -47,9 +47,11 @@ class GameStore {
startInfo
:
IStartInfo
=
null
;
async
startGame
()
{
async
startGame
(
isNew
:
boolean
)
{
showWaiting
();
const
{
success
,
data
}
=
await
sendWebNetWithToken
(
WebNetName
.
startGame
);
const
{
success
,
data
}
=
await
sendWebNetWithToken
(
WebNetName
.
startGame
,
{
isNew
:
isNew
,
});
hideWaiting
();
if
(
!
success
)
{
...
...
preview-template/mock/home/prizeType.do.json
0 → 100644
View file @
393643ca
{
"data"
:
[
{
"prizeType"
:
1
,
"prizeId"
:
"g4c4c3edd"
},
{
"prizeType"
:
2
,
"prizeId"
:
"g0e432eeb"
},
{
"prizeType"
:
3
,
"prizeId"
:
"g900c8442"
},
{
"prizeType"
:
4
,
"prizeId"
:
"g4c7ba888"
}
],
"success"
:
true
}
\ No newline at end of file
preview-template/mock/records.query.json
View file @
393643ca
...
...
@@ -106,6 +106,5 @@
"prizeId"
:
"g0e432eeb"
}
],
"data"
:[],
"success"
:
true
}
\ No newline at end of file
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