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
f16ccfbe
Commit
f16ccfbe
authored
Jun 04, 2025
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11
parent
25f2fb41
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
26 deletions
+29
-26
game.ts
mock/game.ts
+1
-1
Level17.ts
src/pages/GamePage/Level/Level17.ts
+4
-3
LevelConfig.ts
src/pages/GamePage/Level/LevelConfig.ts
+22
-22
gameStore.ts
src/store/gameStore.ts
+2
-0
No files found.
mock/game.ts
View file @
f16ccfbe
...
@@ -10,7 +10,7 @@ export default [
...
@@ -10,7 +10,7 @@ export default [
message
:
"message"
,
message
:
"message"
,
data
:
AESEncrypt
(
JSON
.
stringify
({
data
:
AESEncrypt
(
JSON
.
stringify
({
recordId
:
"recordId"
,
recordId
:
"recordId"
,
countdownSeconds
:
10
,
countdownSeconds
:
1
1
0
,
remainTipTimes
:
3
,
remainTipTimes
:
3
,
}),
"7A2F4B8D1E6C3905"
,
"cDOiBC1n2QrkAY2P"
),
}),
"7A2F4B8D1E6C3905"
,
"cDOiBC1n2QrkAY2P"
),
// data: "TtL6pvFMpXEajymGe7uOoiD0iaAnxxtuOFqvG+Vo0R4qzJQlb+eQneEkPKv+nNsXKJHVe/hfKTQAMj6FuC2Ltg=="
// data: "TtL6pvFMpXEajymGe7uOoiD0iaAnxxtuOFqvG+Vo0R4qzJQlb+eQneEkPKv+nNsXKJHVe/hfKTQAMj6FuC2Ltg=="
...
...
src/pages/GamePage/Level/Level17.ts
View file @
f16ccfbe
...
@@ -60,14 +60,15 @@ export class Level17 extends LevelBase {
...
@@ -60,14 +60,15 @@ export class Level17 extends LevelBase {
this
.
circleArr
.
map
((
item
,
index
)
=>
{
this
.
circleArr
.
map
((
item
,
index
)
=>
{
if
(
this
.
pos
.
x
>=
item
.
x
&&
this
.
pos
.
x
<=
item
.
x
+
item
.
width
&&
this
.
pos
.
y
>=
item
.
y
&&
this
.
pos
.
y
<=
item
.
y
+
item
.
height
)
{
if
(
this
.
pos
.
x
>=
item
.
x
&&
this
.
pos
.
x
<=
item
.
x
+
item
.
width
&&
this
.
pos
.
y
>=
item
.
y
&&
this
.
pos
.
y
<=
item
.
y
+
item
.
height
)
{
if
(
item
.
findFlag
)
return
;
item
.
findFlag
=
true
;
Tween
.
get
(
item
)
Tween
.
get
(
item
)
.
to
({
alpha
:
1
},
444
,
Ease
.
quadInOut
)
.
to
({
alpha
:
1
},
444
,
Ease
.
quadInOut
)
.
call
(()
=>
{
.
call
(()
=>
{
!
item
.
findFlag
&&
this
.
findNum
++
;
this
.
findNum
++
;
item
.
alpha
=
1
;
item
.
findFlag
=
true
;
if
(
this
.
findNum
==
10
)
{
if
(
this
.
findNum
==
10
)
{
this
.
setPauseCd
(
true
);
this
.
setPauseCd
(
true
);
console
.
log
(
123123123123
)
globalEvent
.
emit
(
GameEvent
.
NextLevel
);
globalEvent
.
emit
(
GameEvent
.
NextLevel
);
}
}
})
})
...
...
src/pages/GamePage/Level/LevelConfig.ts
View file @
f16ccfbe
...
@@ -29,29 +29,29 @@ export const errorWaitTime = 1000;
...
@@ -29,29 +29,29 @@ export const errorWaitTime = 1000;
export
const
rightWaitTime
=
2000
;
export
const
rightWaitTime
=
2000
;
export
const
LevelArr
=
[
export
const
LevelArr
=
[
{
cls
:
Level1
,
tip
:
`5=1`
},
//
{ cls: Level1, tip: `5=1` },
{
cls
:
Level2
,
tip
:
`图中一共有9个金币`
},
//
{ cls: Level2, tip: `图中一共有9个金币` },
{
cls
:
Level3
,
tip
:
`当然是太阳最高啦`
},
//
{ cls: Level3, tip: `当然是太阳最高啦` },
{
cls
:
Level4
,
tip
:
`没有什么比猫猫的<br/>左右爪更像了`
},
//
{ cls: Level4, tip: `没有什么比猫猫的<br/>左右爪更像了` },
{
cls
:
Level5
,
tip
:
`将蛋黄放在蛋白上<br/>拼出荷包蛋`
},
//
{ cls: Level5, tip: `将蛋黄放在蛋白上<br/>拼出荷包蛋` },
{
cls
:
Level6
,
tip
:
`直接移动最底层的蛋糕`
},
//
{ cls: Level6, tip: `直接移动最底层的蛋糕` },
{
cls
:
Level7
,
tip
:
`旋转存钱罐,倒出金币`
},
//
{ cls: Level7, tip: `旋转存钱罐,倒出金币` },
{
cls
:
Level8
,
tip
:
`最深的颜色是题目`
},
//
{ cls: Level8, tip: `最深的颜色是题目` },
{
cls
:
Level9
,
tip
:
`移动小鸭子至河边`
},
//
{ cls: Level9, tip: `移动小鸭子至河边` },
{
cls
:
Level10
,
tip
:
`将“1”移动至等号右边<br/>形成等式`
},
//
{ cls: Level10, tip: `将“1”移动至等号右边<br/>形成等式` },
{
cls
:
Level11
,
tip
:
`将冰箱放大至能装够装下<br/>长颈鹿`
},
//
{ cls: Level11, tip: `将冰箱放大至能装够装下<br/>长颈鹿` },
{
cls
:
Level12
,
tip
:
`掐断烟头`
},
//
{ cls: Level12, tip: `掐断烟头` },
{
cls
:
Level13
,
tip
:
`打开盖子看看`
},
//
{ cls: Level13, tip: `打开盖子看看` },
{
cls
:
Level14
,
tip
:
`将香蕉移动到牛奶中<br/>变成香蕉牛奶`
},
//
{ cls: Level14, tip: `将香蕉移动到牛奶中<br/>变成香蕉牛奶` },
{
cls
:
Level15
,
tip
:
`猫吃老鼠`
},
{
cls
:
Level15
,
tip
:
`猫吃老鼠`
},
{
cls
:
Level16
,
tip
:
`移动笼子罩住小鸭子`
},
{
cls
:
Level16
,
tip
:
`移动笼子罩住小鸭子`
},
{
cls
:
Level17
,
tip
:
`别忘了,人是高等动物哦`
},
{
cls
:
Level17
,
tip
:
`别忘了,人是高等动物哦`
},
{
cls
:
Level18
,
tip
:
`移开乌云露出太阳<br/>让冰块融化`
},
//
{ cls: Level18, tip: `移开乌云露出太阳<br/>让冰块融化` },
{
cls
:
Level19
,
tip
:
`将小船放大,装下两人`
},
//
{ cls: Level19, tip: `将小船放大,装下两人` },
{
cls
:
Level20
,
tip
:
`别忘了把题目也装进箱子里`
},
//
{ cls: Level20, tip: `别忘了把题目也装进箱子里` },
{
cls
:
Level21
,
tip
:
`移动鸡蛋,碰一碰便知`
},
//
{ cls: Level21, tip: `移动鸡蛋,碰一碰便知` },
{
cls
:
Level22
,
tip
:
`移开圣诞老人的衣服看看`
},
//
{ cls: Level22, tip: `移开圣诞老人的衣服看看` },
{
cls
:
Level23
,
tip
:
`一样重`
},
//
{ cls: Level23, tip: `一样重` },
{
cls
:
Level24
,
tip
:
`将雪球合在一起滚成大雪球`
},
//
{ cls: Level24, tip: `将雪球合在一起滚成大雪球` },
{
cls
:
Level25
,
tip
:
`按住小猪鼻子,把它憋醒`
},
//
{ cls: Level25, tip: `按住小猪鼻子,把它憋醒` },
];
];
src/store/gameStore.ts
View file @
f16ccfbe
...
@@ -57,6 +57,7 @@ class GameStore {
...
@@ -57,6 +57,7 @@ class GameStore {
score
,
score
,
timestamp
:
Date
.
now
(),
timestamp
:
Date
.
now
(),
};
};
console
.
log
(
d
);
const
param
=
AESEncrypt
(
JSON
.
stringify
(
d
),
"7A2F4B8D1E6C3905"
,
"cDOiBC1n2QrkAY2P"
);
const
param
=
AESEncrypt
(
JSON
.
stringify
(
d
),
"7A2F4B8D1E6C3905"
,
"cDOiBC1n2QrkAY2P"
);
const
{
success
,
data
}
=
await
API
.
middleSubmit
({
param
});
const
{
success
,
data
}
=
await
API
.
middleSubmit
({
param
});
...
@@ -75,6 +76,7 @@ class GameStore {
...
@@ -75,6 +76,7 @@ class GameStore {
score
,
score
,
timestamp
:
Date
.
now
(),
timestamp
:
Date
.
now
(),
};
};
console
.
log
(
d
);
const
param
=
AESEncrypt
(
JSON
.
stringify
(
d
),
"7A2F4B8D1E6C3905"
,
"cDOiBC1n2QrkAY2P"
);
const
param
=
AESEncrypt
(
JSON
.
stringify
(
d
),
"7A2F4B8D1E6C3905"
,
"cDOiBC1n2QrkAY2P"
);
const
{
success
,
data
}
=
await
API
.
submit
({
param
});
const
{
success
,
data
}
=
await
API
.
submit
({
param
});
...
...
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