Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RB_StrongestBrain_250520
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
RB_StrongestBrain_250520
Commits
4a04233e
Commit
4a04233e
authored
May 21, 2025
by
cc
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab2.dui88.com/sparkprojects/rb_strongestbrain_250520
parents
ec39b8b4
27eb93e0
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
67 additions
and
107 deletions
+67
-107
App.tsx
src/App.tsx
+1
-1
close.png
src/assets/TipPanel/close.png
+0
-0
close.png
src/assets/common/close.png
+0
-0
Game.ts
src/pages/GamePage/Game.ts
+3
-3
GamePage.tsx
src/pages/GamePage/GamePage.tsx
+7
-0
LevelConfig.ts
src/pages/GamePage/Level/LevelConfig.ts
+25
-10
TipPanel.less
src/panels/TipPanel/TipPanel.less
+25
-88
TipPanel.tsx
src/panels/TipPanel/TipPanel.tsx
+6
-5
No files found.
src/App.tsx
View file @
4a04233e
...
...
@@ -31,7 +31,7 @@ class App extends Component {
const
defaultPage
=
{
myPrize
:
MyPrize
,
// TODO 举例子 新宿台奖品页
index
:
LoadingDemo
,
}[
skinId
]
||
Ho
mePage
;
}[
skinId
]
||
Ga
mePage
;
PageCtrl
.
changePage
(
defaultPage
);
}
...
...
src/assets/TipPanel/close.png
deleted
100644 → 0
View file @
ec39b8b4
4.78 KB
src/assets/common/close.png
View replaced file @
ec39b8b4
View file @
4a04233e
1.54 KB
|
W:
|
H:
4.78 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/pages/GamePage/Game.ts
View file @
4a04233e
...
...
@@ -26,13 +26,13 @@ export class Game extends Base {
const
qsBg
=
this
.
addChild
(
new
Sprite
(
Assets
.
get
(
"问题.png"
)));
qsBg
.
position
.
set
(
49
,
316
);
this
.
level
=
this
.
addChild
(
new
Level9
());
//
this.level = this.addChild(new Level9());
gameStore
.
start
();
globalEvent
.
on
(
GameEvent
.
NextLevel
,
this
.
nextLevel
,
this
);
//
this.nextLevel();
this
.
nextLevel
();
}
...
...
@@ -53,7 +53,7 @@ export class Game extends Base {
this
.
level
.
destroy
();
}
const
cls
=
LevelArr
[
levelIdx
];
const
{
cls
}
=
LevelArr
[
levelIdx
];
this
.
level
=
this
.
addChild
(
new
cls
());
}
...
...
src/pages/GamePage/GamePage.tsx
View file @
4a04233e
...
...
@@ -17,6 +17,9 @@ import gameStore from "@/store/gameStore.ts";
import
.
meta
.
env
.
DEV
&&
initDevtools
({});
import
bgImg
from
"../../assets/GamePage/bg.jpg"
;
import
{
ModalCtrl
}
from
"@/core/ctrls/ModalCtrl.tsx"
;
import
TipPanel
from
"@/panels/TipPanel/TipPanel.tsx"
;
import
{
LevelArr
}
from
"@/pages/GamePage/Level/LevelConfig.ts"
;
export
function
getApp
():
Application
{
return
window
[
"__app"
];
...
...
@@ -101,6 +104,10 @@ class GamePage extends React.Component<any, any> {
}
clickTip
=
()
=>
{
const
{
levelIndex
,
levelIdxArr
}
=
gameStore
.
gameInfo
;
const
levelIdx
=
levelIdxArr
[
levelIndex
];
const
{
tip
,
cls
}
=
LevelArr
[
levelIdx
];
ModalCtrl
.
showModal
(
TipPanel
,
{
tip
});
}
render
()
{
...
...
src/pages/GamePage/Level/LevelConfig.ts
View file @
4a04233e
...
...
@@ -11,14 +11,29 @@ import { Level23 } from "@/pages/GamePage/Level/Level23.ts";
export
const
LevelArr
=
[
Level1
,
Level2
,
Level3
,
Level4
,
Level5
,
Level7
,
Level8
,
Level9
,
Level14
,
Level23
,
{
cls
:
Level1
,
tip
:
`5=1`
},
{
cls
:
Level2
,
tip
:
`图中一共有9个金币`
},
{
cls
:
Level3
,
tip
:
`当然是太阳最高啦`
},
{
cls
:
Level4
,
tip
:
`没有什么比猫猫的<br/>左右爪更像了`
},
{
cls
:
Level5
,
tip
:
`将蛋黄放在蛋白上<br/>拼出荷包蛋`
},
{
cls
:
Level5
,
tip
:
`直接移动最底层的蛋糕`
},
// 6
{
cls
:
Level7
,
tip
:
`旋转存钱罐,倒出金币`
},
{
cls
:
Level8
,
tip
:
`最深的颜色是题目`
},
{
cls
:
Level9
,
tip
:
`移动小鸭子至河边`
},
{
cls
:
Level9
,
tip
:
`将“1”移动至等号右边<br/>形成等式`
},
// 10
{
cls
:
Level9
,
tip
:
`将冰箱放大至能装够装下<br/>长颈鹿`
},
// 11
{
cls
:
Level9
,
tip
:
`掐断烟头`
},
// 12
{
cls
:
Level9
,
tip
:
`打开盖子看看`
},
// 13
{
cls
:
Level14
,
tip
:
`将香蕉移动到牛奶中<br/>变成香蕉牛奶`
},
{
cls
:
Level14
,
tip
:
`猫吃老鼠`
},
// 15
{
cls
:
Level14
,
tip
:
`移动笼子罩住小鸭子`
},
// 16
{
cls
:
Level14
,
tip
:
`别忘了,人是高等动物哦`
},
// 17
{
cls
:
Level14
,
tip
:
`移开乌云露出太阳<br/>让冰块融化`
},
// 18
{
cls
:
Level14
,
tip
:
`将冰箱放大至能够装下长颈鹿`
},
// 19
{
cls
:
Level14
,
tip
:
`别忘了把题目也装进箱子里`
},
// 20
{
cls
:
Level14
,
tip
:
`移动鸡蛋,碰一碰便知`
},
// 21
{
cls
:
Level14
,
tip
:
`移开圣诞老人的衣服看看`
},
// 22
{
cls
:
Level23
,
tip
:
`当然是一样重`
},
{
cls
:
Level23
,
tip
:
`将雪球合在一起滚成大雪球`
},
// 24
{
cls
:
Level23
,
tip
:
`按住小猪鼻子,把它憋醒`
},
// 25
];
src/panels/TipPanel/TipPanel.less
View file @
4a04233e
@import "../../res.less";
.
SignSuc
Panel {
.
Tip
Panel {
width: 750px;
height: 1624px;
position: absolute;
left: 0;
top: 0;
.bgEffect {
width: 750px;
height: 1624px;
position: absolute;
left: 0;
top: 0;
}
.bg {
position: absolute;
left:
0
;
top:
397
px;
width:
750
px;
height:
741
px;
.webpBg("
SignSuc
Panel/bg.png");
left:
105px
;
top:
491
px;
width:
593
px;
height:
475
px;
.webpBg("
Tip
Panel/bg.png");
}
.t
itle
{
.t
ext
{
position: absolute;
left: 138px;
top: 306px;
width: 384px;
height: 84px;
.webpBg("SignSucPanel/签到成功.png");
}
.normal {
.tip {
font-family: "zzgfyht";
font-size: 53.62px;
color: #8f2245;
position: absolute;
left: 0;
top: 485px;
width: 100%;
text-align: center;
}
top: 550px;
width: 464px;
height: 215px;
.img {
position: absolute;
left: 245px;
top: 583px;
width: 263px;
height: 253px;
.webpBg("SignSucPanel/金币堆.png");
}
}
.vip {
color: #8f2245;
font-size: 36px;
color: rgb(153, 57, 27);
font-weight: bold;
text-align: center;
font-family: "zzgfyht";
.tip {
font-size: 54.52px;
position: absolute;
left: 0;
top: 481px;
width: 100%;
text-align: center;
}
.left {
position: absolute;
left: 105px;
top: 581px;
width: 300px;
font-size: 43.19px;
}
.right {
position: absolute;
left: 340px;
top: 581px;
width: 300px;
font-size: 43.19px;
}
.img {
position: absolute;
left: 168px;
top: 643px;
width: 402px;
height: 184px;
.webpBg("SignSucPanel/会员金币堆.png");
}
display: flex;
align-items: center;
justify-content: center;
}
.btn {
position: absolute;
left:
16
4px;
top:
925
px;
width:
420
px;
height:
123
px;
.webpBg("
SignSucPanel/按钮
.png");
left:
24
4px;
top:
766
px;
width:
263
px;
height:
92
px;
.webpBg("
TipPanel/btn
.png");
}
.close {
position: absolute;
left: 3
36
px;
top: 1
194
px;
width:
79
px;
height:
79
px;
left: 3
43
px;
top: 1
058
px;
width:
64
px;
height:
64
px;
.webpBg("common/close.png");
}
...
...
src/panels/TipPanel/TipPanel.tsx
View file @
4a04233e
...
...
@@ -2,7 +2,6 @@ import React from "react";
import
{
observer
}
from
"mobx-react"
;
import
"./TipPanel.less"
;
import
{
Button
}
from
"@grace/ui"
;
import
{
_asyncThrottle
}
from
"@/utils/utils.ts"
;
import
{
ModalCtrl
}
from
"@/core/ctrls/ModalCtrl.tsx"
;
export
interface
ITipPanelProps
{
...
...
@@ -19,16 +18,18 @@ class TipPanel extends React.Component<ITipPanelProps> {
ModalCtrl
.
closeModal
();
};
clickBtn
=
_asyncThrottle
(
async
()
=>
{
clickBtn
=
()
=>
{
ModalCtrl
.
closeModal
();
}
)
;
};
render
()
{
const
{
tip
}
=
this
.
props
;
return
<
div
className=
"
SignSuc
Panel modal_center"
>
return
<
div
className=
"
Tip
Panel modal_center"
>
<
div
className=
"bg"
/>
<
div
></
div
>
<
div
className=
"text"
dangerouslySetInnerHTML=
{
{
__html
:
tip
,
}
}
/>
<
Button
className=
"btn"
onClick=
{
this
.
clickBtn
}
/>
<
Button
className=
"close"
onClick=
{
this
.
clickClose
}
/>
</
div
>;
...
...
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