Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
LuzhouLaojiaoSnake_250428
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
LuzhouLaojiaoSnake_250428
Commits
2fee79bb
Commit
2fee79bb
authored
May 07, 2025
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
倒计时
parent
35c05525
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
133 additions
and
39 deletions
+133
-39
bg.png
src/assets/FailPanel/bg.png
+0
-0
再来一次.png
src/assets/FailPanel/再来一次.png
+0
-0
我知道了.png
src/assets/FailPanel/我知道了.png
+0
-0
bg.png
src/assets/SucPanel/bg.png
+0
-0
btn.png
src/assets/SucPanel/btn.png
+0
-0
close.png
src/assets/SucPanel/close.png
+0
-0
GamePage.tsx
src/pages/GamePage/GamePage.tsx
+4
-0
FailPanel.less
src/panels/FailPanel/FailPanel.less
+0
-37
PrizePanel.tsx
src/panels/PrizePanel/PrizePanel.tsx
+0
-2
SucPanel.less
src/panels/SucPanel/SucPanel.less
+95
-0
SucPanel.tsx
src/panels/SucPanel/SucPanel.tsx
+34
-0
No files found.
src/assets/FailPanel/bg.png
deleted
100644 → 0
View file @
35c05525
104 KB
src/assets/FailPanel/再来一次.png
deleted
100644 → 0
View file @
35c05525
26.1 KB
src/assets/FailPanel/我知道了.png
deleted
100644 → 0
View file @
35c05525
14.9 KB
src/assets/SucPanel/bg.png
0 → 100644
View file @
2fee79bb
87.9 KB
src/assets/SucPanel/btn.png
0 → 100644
View file @
2fee79bb
10.6 KB
src/assets/SucPanel/close.png
0 → 100644
View file @
2fee79bb
6.65 KB
src/pages/GamePage/GamePage.tsx
View file @
2fee79bb
...
@@ -17,6 +17,8 @@ import { Stats } from 'pixi-stats';
...
@@ -17,6 +17,8 @@ import { Stats } from 'pixi-stats';
import
{
System
}
from
'detect-collisions'
;
import
{
System
}
from
'detect-collisions'
;
import
gameStore
from
"@/store/gameStore.ts"
;
import
gameStore
from
"@/store/gameStore.ts"
;
import
{
prefixInteger
,
second2Date
}
from
"@/utils/utils.ts"
;
import
{
prefixInteger
,
second2Date
}
from
"@/utils/utils.ts"
;
import
{
ModalCtrl
}
from
"@/core/ctrls/ModalCtrl.tsx"
;
import
SucPanel
from
"@/panels/SucPanel/SucPanel.tsx"
;
export
const
collisionSys
:
System
=
new
System
();
export
const
collisionSys
:
System
=
new
System
();
const
DEBUG
=
true
;
const
DEBUG
=
true
;
...
@@ -60,6 +62,8 @@ class GamePage extends React.Component {
...
@@ -60,6 +62,8 @@ class GamePage extends React.Component {
await
this
.
initStage
();
await
this
.
initStage
();
this
.
startCd
();
this
.
startCd
();
ModalCtrl
.
showModal
(
SucPanel
);
}
}
startCd
=
()
=>
{
startCd
=
()
=>
{
...
...
src/panels/FailPanel/FailPanel.less
deleted
100644 → 0
View file @
35c05525
@import "../../res.less";
.FailPanel {
width: 750px;
height: 1624px;
position: absolute;
left: 0;
top: 0;
.FailBg {
position: absolute;
left: 93px;
top: 538px;
width: 562px;
height: 349px;
.webpBg("FailPanel/bg.png");
}
.cancel {
position: absolute;
left: 132px;
top: 746px;
width: 233px;
height: 73px;
.webpBg("FailPanel/我知道了.png");
}
.again {
position: absolute;
left: 370px;
top: 739px;
width: 257px;
height: 95px;
.webpBg("FailPanel/再来一次.png");
}
}
src/panels/PrizePanel/PrizePanel.tsx
View file @
2fee79bb
...
@@ -3,7 +3,6 @@ import { observer } from "mobx-react";
...
@@ -3,7 +3,6 @@ import { observer } from "mobx-react";
import
"./PrizePanel.less"
;
import
"./PrizePanel.less"
;
import
{
Button
}
from
"@grace/ui"
;
import
{
Button
}
from
"@grace/ui"
;
import
{
ModalCtrl
}
from
"@/core/ctrls/ModalCtrl.tsx"
;
import
{
ModalCtrl
}
from
"@/core/ctrls/ModalCtrl.tsx"
;
import
FailPanel
from
"@/panels/FailPanel/FailPanel.tsx"
;
export
interface
IPrizePanelProps
{
export
interface
IPrizePanelProps
{
...
@@ -26,7 +25,6 @@ class PrizePanel extends React.Component<IPrizePanelProps> {
...
@@ -26,7 +25,6 @@ class PrizePanel extends React.Component<IPrizePanelProps> {
};
};
clickGet
=
()
=>
{
clickGet
=
()
=>
{
ModalCtrl
.
showModal
(
FailPanel
);
};
};
...
...
src/panels/SucPanel/SucPanel.less
0 → 100644
View file @
2fee79bb
@import "../../res.less";
.SucPanel {
width: 750px;
height: 1624px;
position: absolute;
left: 0;
top: 0;
.bg {
position: absolute;
left: 153px;
top: 335px;
width: 444px;
height: 706px;
.webpBg("SucPanel/bg.png");
}
.rank {
font-size: 29px;
color: rgb(255, 255, 255);
line-height: 0.805;
position: absolute;
left: 0;
top: 430px;
width: 100%;
text-align: center;
text-shadow: 0 0 5px #16c8c2,
0 0 5px #16c8c2,
0 0 5px #16c8c2,
0 0 10px #16c8c2,
0 0 10px #16c8c2,
0 0 20px #16c8c2;
}
.score {
font-size: 96.09px;
color: rgb(255, 255, 255);
font-weight: bold;
text-align: center;
position: absolute;
left: 0;
top: 555px;
width: 100%;
text-shadow: 0 0 5px #f3d71a,
0 0 5px #f3d71a,
0 0 5px #f3d71a,
0 0 10px #f3d71a,
0 0 10px #f3d71a;
span {
font-size: 32.34px;
}
}
.tip {
color: rgb(255, 255, 255);
font-size: 32.34px;
line-height: 0.882;
text-align: center;
position: absolute;
left: 0;
top: 685px;
width: 100%;
span {
margin-left: 10px;
font-size: 32.34px;
text-shadow: 0 0 5px #f3d71a,
0 0 5px #f3d71a,
0 0 5px #f3d71a,
0 0 10px #f3d71a,
0 0 10px #f3d71a;
}
}
.btn {
position: absolute;
left: 233px;
top: 904px;
width: 284px;
height: 90px;
.webpBg("SucPanel/btn.png");
}
.close {
position: absolute;
left: 341px;
top: 1065px;
width: 70px;
height: 70px;
.webpBg("SucPanel/close.png");
}
}
src/panels/
FailPanel/Fail
Panel.tsx
→
src/panels/
SucPanel/Suc
Panel.tsx
View file @
2fee79bb
import
React
from
"react"
;
import
React
from
"react"
;
import
{
observer
}
from
"mobx-react"
;
import
{
observer
}
from
"mobx-react"
;
import
"./
Fail
Panel.less"
;
import
"./
Suc
Panel.less"
;
import
{
Button
}
from
"@grace/ui"
;
import
{
Button
}
from
"@grace/ui"
;
import
{
_asyncThrottle
}
from
"@/utils/utils.ts"
;
import
{
_asyncThrottle
}
from
"@/utils/utils.ts"
;
import
{
ModalCtrl
}
from
"@/core/ctrls/ModalCtrl.tsx"
;
import
{
ModalCtrl
}
from
"@/core/ctrls/ModalCtrl.tsx"
;
import
PrizePanel
from
"@/panels/PrizePanel/PrizePanel.tsx"
;
@
observer
@
observer
class
Fail
Panel
extends
React
.
Component
{
class
Suc
Panel
extends
React
.
Component
{
componentDidMount
()
{
componentDidMount
()
{
}
}
clickCancel
=
()
=>
{
clickClose
=
()
=>
{
ModalCtrl
.
showModal
(
PrizePanel
,
{
ModalCtrl
.
closeModal
();
prizeVO
:
{
},
});
};
};
click
Agai
n
=
_asyncThrottle
(
async
()
=>
{
click
Bt
n
=
_asyncThrottle
(
async
()
=>
{
ModalCtrl
.
closeModal
();
});
});
render
()
{
render
()
{
return
<
div
className=
"FailPanel"
>
return
<
div
className=
"SucPanel"
>
<
div
className=
"FailBg"
/>
<
div
className=
"bg"
/>
<
div
className=
"rank"
>
当前排名:NO.78
</
div
>
<
Button
className=
"cancel md12"
onClick=
{
this
.
clickCancel
}
/>
<
div
className=
"score"
>
167
<
span
>
分
</
span
></
div
>
<
Button
className=
"again md13"
onClick=
{
this
.
clickAgain
}
/>
<
div
className=
"tip"
>
恭喜获得抽奖机会
<
span
>
+1
</
span
></
div
>
<
Button
className=
"btn"
onClick=
{
this
.
clickBtn
}
/>
<
Button
className=
"close"
onClick=
{
this
.
clickClose
}
/>
</
div
>;
</
div
>;
}
}
}
}
export
default
Fail
Panel
;
export
default
Suc
Panel
;
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