Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
interactiveGames_Level
Project
Project
Details
Activity
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
xuxing@jiuaoedu.com
interactiveGames_Level
Commits
92263bac
Commit
92263bac
authored
Sep 16, 2021
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
关卡完全好了
parent
7ce649fa
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
112 additions
and
14 deletions
+112
-14
FaceRecognition_1.scene
...undle/games/FaceRecognition/scene/FaceRecognition_1.scene
+1
-1
FaceRecognitionCtr.ts
...Bundle/games/FaceRecognition/script/FaceRecognitionCtr.ts
+8
-0
BombDisposalExpert_1.scene
...games/bombDisposalExpert/scene/BombDisposalExpert_1.scene
+1
-1
BombDisposalExpertCtr.ts
.../games/bombDisposalExpert/script/BombDisposalExpertCtr.ts
+8
-0
BuyTicketCtr.ts
assets/sceneBundle/games/buyTicket/script/BuyTicketCtr.ts
+8
-0
Classify_Star_2.scene
...eneBundle/games/classify-star/scene/Classify_Star_2.scene
+1
-1
ClassifyCtr_1.ts
...s/sceneBundle/games/classify-star/script/ClassifyCtr_1.ts
+8
-0
ClassifyCtr.ts
assets/sceneBundle/games/classify/script/ClassifyCtr.ts
+8
-0
FoodForTheParty_1.scene
...undle/games/foodForTheParty/scene/FoodForTheParty_1.scene
+3
-3
PasswordMatrixCtr.ts
...neBundle/games/passwordMatrix/script/PasswordMatrixCtr.ts
+8
-0
QuickQuizCtr.ts
assets/sceneBundle/games/quickQuiz/script/QuickQuizCtr.ts
+8
-0
SchulteLetter_5_5.scene
...s/sceneBundle/games/schulte/scene/SchulteLetter_5_5.scene
+2
-2
SchultePoem_6_4.scene
assets/sceneBundle/games/schulte/scene/SchultePoem_6_4.scene
+2
-2
SchultePoem_6_5.scene
assets/sceneBundle/games/schulte/scene/SchultePoem_6_5.scene
+2
-2
SiHaiShiYiCtr.ts
assets/sceneBundle/games/siHaiShiYi/script/SiHaiShiYiCtr.ts
+8
-0
TransientCtr_1.ts
assets/sceneBundle/games/transient/script/TransientCtr_1.ts
+10
-1
UniqueCtr_1.ts
assets/sceneBundle/games/unique-1/script/UniqueCtr_1.ts
+8
-0
UniqueCtr_2.ts
assets/sceneBundle/games/unique-2/script/UniqueCtr_2.ts
+8
-0
UniqueCtr.ts
assets/sceneBundle/games/unique/script/UniqueCtr.ts
+8
-0
LevelCfg.ts
assets/startFolder/script/LevelCfg.ts
+0
-0
LevelHomeCtr.ts
assets/startFolder/script/LevelHomeCtr.ts
+2
-1
No files found.
assets/sceneBundle/games/FaceRecognition/scene/FaceRecognition_1.scene
View file @
92263bac
...
@@ -315,7 +315,7 @@
...
@@ -315,7 +315,7 @@
"_priority": 1073741824,
"_priority": 1073741824,
"_fov": 45,
"_fov": 45,
"_fovAxis": 0,
"_fovAxis": 0,
"_orthoHeight":
375
,
"_orthoHeight":
418.6192468619247
,
"_near": 1,
"_near": 1,
"_far": 2000,
"_far": 2000,
"_color": {
"_color": {
...
...
assets/sceneBundle/games/FaceRecognition/script/FaceRecognitionCtr.ts
View file @
92263bac
...
@@ -74,6 +74,14 @@ export class FaceRecognitionCtr extends Component {
...
@@ -74,6 +74,14 @@ export class FaceRecognitionCtr extends Component {
private
isPlayCountdownMus
=
false
;
private
isPlayCountdownMus
=
false
;
private
audioSrc
:
AudioSrc
=
null
!
;
private
audioSrc
:
AudioSrc
=
null
!
;
setGameData
(
resData
:
object
){
//@ts-ignore
if
(
resData
.
totalTime
){
//@ts-ignore
this
.
totalTime
=
resData
.
totalTime
;
}
}
start
()
{
start
()
{
let
outGameTime
=
Utils
.
getValueFromHref
(
"gameTime"
);
let
outGameTime
=
Utils
.
getValueFromHref
(
"gameTime"
);
if
(
outGameTime
!==
null
)
{
if
(
outGameTime
!==
null
)
{
...
...
assets/sceneBundle/games/bombDisposalExpert/scene/BombDisposalExpert_1.scene
View file @
92263bac
...
@@ -321,7 +321,7 @@
...
@@ -321,7 +321,7 @@
"_priority": 1073741824,
"_priority": 1073741824,
"_fov": 45,
"_fov": 45,
"_fovAxis": 0,
"_fovAxis": 0,
"_orthoHeight":
375.00000000000006
,
"_orthoHeight":
418.6192468619247
,
"_near": 1,
"_near": 1,
"_far": 2000,
"_far": 2000,
"_color": {
"_color": {
...
...
assets/sceneBundle/games/bombDisposalExpert/script/BombDisposalExpertCtr.ts
View file @
92263bac
...
@@ -151,6 +151,14 @@ export class BombDisposalExpertCtr extends Component {
...
@@ -151,6 +151,14 @@ export class BombDisposalExpertCtr extends Component {
private
isShake
=
false
;
private
isShake
=
false
;
setGameData
(
resData
:
object
){
//@ts-ignore
if
(
resData
.
totalTime
){
//@ts-ignore
this
.
totalTime
=
resData
.
totalTime
;
}
}
start
()
{
start
()
{
let
outGameTime
=
Utils
.
getValueFromHref
(
"gameTime"
);
let
outGameTime
=
Utils
.
getValueFromHref
(
"gameTime"
);
if
(
outGameTime
!==
null
)
{
if
(
outGameTime
!==
null
)
{
...
...
assets/sceneBundle/games/buyTicket/script/BuyTicketCtr.ts
View file @
92263bac
...
@@ -70,6 +70,14 @@ export class BuyTicketCtr extends Component {
...
@@ -70,6 +70,14 @@ export class BuyTicketCtr extends Component {
private
gameState
=
GAME_STATE
.
READY
;
private
gameState
=
GAME_STATE
.
READY
;
private
isPlayCountdownMus
=
false
;
private
isPlayCountdownMus
=
false
;
setGameData
(
resData
:
object
){
//@ts-ignore
if
(
resData
.
totalTime
){
//@ts-ignore
this
.
totalTime
=
resData
.
totalTime
;
}
}
start
()
{
start
()
{
let
outGameTime
=
Utils
.
getValueFromHref
(
"gameTime"
);
let
outGameTime
=
Utils
.
getValueFromHref
(
"gameTime"
);
if
(
outGameTime
!==
null
)
{
if
(
outGameTime
!==
null
)
{
...
...
assets/sceneBundle/games/classify-star/scene/Classify_Star_2.scene
View file @
92263bac
...
@@ -249,7 +249,7 @@
...
@@ -249,7 +249,7 @@
"_priority": 1073741824,
"_priority": 1073741824,
"_fov": 45,
"_fov": 45,
"_fovAxis": 0,
"_fovAxis": 0,
"_orthoHeight":
375
,
"_orthoHeight":
418.6192468619247
,
"_near": 1,
"_near": 1,
"_far": 2000,
"_far": 2000,
"_color": {
"_color": {
...
...
assets/sceneBundle/games/classify-star/script/ClassifyCtr_1.ts
View file @
92263bac
...
@@ -101,6 +101,14 @@ export class ClassifyCtr_1 extends Component {
...
@@ -101,6 +101,14 @@ export class ClassifyCtr_1 extends Component {
private
bestScore
:
number
=
0
;
private
bestScore
:
number
=
0
;
private
isPlayCountdownMus
=
false
;
private
isPlayCountdownMus
=
false
;
setGameData
(
resData
:
object
){
//@ts-ignore
if
(
resData
.
totalTime
){
//@ts-ignore
this
.
totalTime
=
resData
.
totalTime
;
}
}
start
()
{
start
()
{
let
outGameTime
=
Utils
.
getValueFromHref
(
"gameTime"
);
let
outGameTime
=
Utils
.
getValueFromHref
(
"gameTime"
);
if
(
outGameTime
!==
null
)
{
if
(
outGameTime
!==
null
)
{
...
...
assets/sceneBundle/games/classify/script/ClassifyCtr.ts
View file @
92263bac
...
@@ -93,6 +93,14 @@ export class ClassifyCtr extends Component {
...
@@ -93,6 +93,14 @@ export class ClassifyCtr extends Component {
private
bestScore
=
0
;
private
bestScore
=
0
;
private
isPlayCountdownMus
=
false
;
private
isPlayCountdownMus
=
false
;
setGameData
(
resData
:
object
){
//@ts-ignore
if
(
resData
.
totalTime
){
//@ts-ignore
this
.
totalTime
=
resData
.
totalTime
;
}
}
start
()
{
start
()
{
let
outGameTime
=
Utils
.
getValueFromHref
(
"gameTime"
);
let
outGameTime
=
Utils
.
getValueFromHref
(
"gameTime"
);
if
(
outGameTime
!==
null
)
{
if
(
outGameTime
!==
null
)
{
...
...
assets/sceneBundle/games/foodForTheParty/scene/FoodForTheParty_1.scene
View file @
92263bac
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
},
},
{
{
"__type__": "cc.Scene",
"__type__": "cc.Scene",
"_name": "FoodForTheParty",
"_name": "FoodForTheParty
_1
",
"_objFlags": 0,
"_objFlags": 0,
"_parent": null,
"_parent": null,
"_children": [
"_children": [
...
@@ -315,7 +315,7 @@
...
@@ -315,7 +315,7 @@
"_priority": 1073741824,
"_priority": 1073741824,
"_fov": 45,
"_fov": 45,
"_fovAxis": 0,
"_fovAxis": 0,
"_orthoHeight":
375
,
"_orthoHeight":
418.6192468619247
,
"_near": 1,
"_near": 1,
"_far": 2000,
"_far": 2000,
"_color": {
"_color": {
...
@@ -10744,7 +10744,7 @@
...
@@ -10744,7 +10744,7 @@
},
},
"_enabled": true,
"_enabled": true,
"__prefab": null,
"__prefab": null,
"gameId":
0
,
"gameId":
7001
,
"mainNode": {
"mainNode": {
"__id__": 16
"__id__": 16
},
},
...
...
assets/sceneBundle/games/passwordMatrix/script/PasswordMatrixCtr.ts
View file @
92263bac
...
@@ -102,6 +102,14 @@ export class PasswordMatrixCtr extends Component {
...
@@ -102,6 +102,14 @@ export class PasswordMatrixCtr extends Component {
private
bestTime
=
0
;
private
bestTime
=
0
;
private
tipsTween
:
Tween
<
Node
>
=
null
!
;
private
tipsTween
:
Tween
<
Node
>
=
null
!
;
setGameData
(
resData
:
object
){
//@ts-ignore
if
(
resData
.
totalTime
){
//@ts-ignore
this
.
totalTime
=
resData
.
totalTime
;
}
}
start
()
{
start
()
{
let
outGameTime
=
Utils
.
getValueFromHref
(
"gameTime"
);
let
outGameTime
=
Utils
.
getValueFromHref
(
"gameTime"
);
if
(
outGameTime
!==
null
)
{
if
(
outGameTime
!==
null
)
{
...
...
assets/sceneBundle/games/quickQuiz/script/QuickQuizCtr.ts
View file @
92263bac
...
@@ -59,6 +59,14 @@ export class QuickQuizCtr extends Component {
...
@@ -59,6 +59,14 @@ export class QuickQuizCtr extends Component {
private
costTime
=
0
;
private
costTime
=
0
;
private
isPlayCountdownMus
=
false
;
private
isPlayCountdownMus
=
false
;
setGameData
(
resData
:
object
){
//@ts-ignore
if
(
resData
.
totalTime
){
//@ts-ignore
this
.
totalTime
=
resData
.
totalTime
;
}
}
start
()
{
start
()
{
let
outGameTime
=
Utils
.
getValueFromHref
(
"gameTime"
);
let
outGameTime
=
Utils
.
getValueFromHref
(
"gameTime"
);
if
(
outGameTime
!==
null
)
{
if
(
outGameTime
!==
null
)
{
...
...
assets/sceneBundle/games/schulte/scene/SchulteLetter_5_5.scene
View file @
92263bac
...
@@ -321,7 +321,7 @@
...
@@ -321,7 +321,7 @@
"_priority": 1073741824,
"_priority": 1073741824,
"_fov": 45,
"_fov": 45,
"_fovAxis": 0,
"_fovAxis": 0,
"_orthoHeight":
375.00000000000006
,
"_orthoHeight":
418.6192468619247
,
"_near": 1,
"_near": 1,
"_far": 2000,
"_far": 2000,
"_color": {
"_color": {
...
@@ -3807,7 +3807,7 @@
...
@@ -3807,7 +3807,7 @@
},
},
"_enabled": true,
"_enabled": true,
"__prefab": null,
"__prefab": null,
"gameId": 1
006
,
"gameId": 1
101
,
"blockPosNodes": [
"blockPosNodes": [
{
{
"__id__": 48
"__id__": 48
...
...
assets/sceneBundle/games/schulte/scene/SchultePoem_6_4.scene
View file @
92263bac
...
@@ -321,7 +321,7 @@
...
@@ -321,7 +321,7 @@
"_priority": 1073741824,
"_priority": 1073741824,
"_fov": 45,
"_fov": 45,
"_fovAxis": 0,
"_fovAxis": 0,
"_orthoHeight":
375.00000000000006
,
"_orthoHeight":
418.6192468619247
,
"_near": 1,
"_near": 1,
"_far": 2000,
"_far": 2000,
"_color": {
"_color": {
...
@@ -3626,7 +3626,7 @@
...
@@ -3626,7 +3626,7 @@
},
},
"_enabled": true,
"_enabled": true,
"__prefab": null,
"__prefab": null,
"gameId": 1
004
,
"gameId": 1
201
,
"blockPosNodes": [
"blockPosNodes": [
{
{
"__id__": 48
"__id__": 48
...
...
assets/sceneBundle/games/schulte/scene/SchultePoem_6_5.scene
View file @
92263bac
...
@@ -321,7 +321,7 @@
...
@@ -321,7 +321,7 @@
"_priority": 1073741824,
"_priority": 1073741824,
"_fov": 45,
"_fov": 45,
"_fovAxis": 0,
"_fovAxis": 0,
"_orthoHeight":
375.00000000000006
,
"_orthoHeight":
418.6192468619247
,
"_near": 1,
"_near": 1,
"_far": 2000,
"_far": 2000,
"_color": {
"_color": {
...
@@ -4142,7 +4142,7 @@
...
@@ -4142,7 +4142,7 @@
},
},
"_enabled": true,
"_enabled": true,
"__prefab": null,
"__prefab": null,
"gameId": 1
005
,
"gameId": 1
202
,
"blockPosNodes": [
"blockPosNodes": [
{
{
"__id__": 48
"__id__": 48
...
...
assets/sceneBundle/games/siHaiShiYi/script/SiHaiShiYiCtr.ts
View file @
92263bac
...
@@ -87,6 +87,14 @@ export class SiHaiShiYiCtr extends Component {
...
@@ -87,6 +87,14 @@ export class SiHaiShiYiCtr extends Component {
private
isPlayCountdownMus
=
false
;
private
isPlayCountdownMus
=
false
;
private
audioSrc
:
AudioSrc
=
null
!
private
audioSrc
:
AudioSrc
=
null
!
setGameData
(
resData
:
object
){
//@ts-ignore
if
(
resData
.
totalTime
){
//@ts-ignore
this
.
totalTime
=
resData
.
totalTime
;
}
}
start
()
{
start
()
{
let
outGameTime
=
Utils
.
getValueFromHref
(
"gameTime"
);
let
outGameTime
=
Utils
.
getValueFromHref
(
"gameTime"
);
if
(
outGameTime
!==
null
)
{
if
(
outGameTime
!==
null
)
{
...
...
assets/sceneBundle/games/transient/script/TransientCtr_1.ts
View file @
92263bac
...
@@ -163,6 +163,14 @@ export class TransientCtr_1 extends Component {
...
@@ -163,6 +163,14 @@ export class TransientCtr_1 extends Component {
private
isShake
=
false
;
private
isShake
=
false
;
private
hangGameState
=
GAME_STATE
.
GAME_PAUSE
;
private
hangGameState
=
GAME_STATE
.
GAME_PAUSE
;
setGameData
(
resData
:
object
){
//@ts-ignore
if
(
resData
.
totalTime
){
//@ts-ignore
this
.
totalTime
=
resData
.
totalTime
;
}
}
start
()
{
start
()
{
let
outGameTime
=
Utils
.
getValueFromHref
(
"gameTime"
);
let
outGameTime
=
Utils
.
getValueFromHref
(
"gameTime"
);
if
(
outGameTime
!==
null
)
{
if
(
outGameTime
!==
null
)
{
...
@@ -233,7 +241,7 @@ export class TransientCtr_1 extends Component {
...
@@ -233,7 +241,7 @@ export class TransientCtr_1 extends Component {
this
.
stopShake
();
this
.
stopShake
();
this
.
isPlayCountdownMus
=
false
;
this
.
isPlayCountdownMus
=
false
;
this
.
curScore
=
0
;
this
.
curScore
=
0
;
this
.
curRoundIdx
=
-
1
;
//
this.curRoundIdx = -1;
this
.
succScoreLab
.
string
=
"通关≥"
+
this
.
succScore
+
"分"
;
this
.
succScoreLab
.
string
=
"通关≥"
+
this
.
succScore
+
"分"
;
this
.
curScoreLab
.
string
=
"我的"
+
this
.
curScore
+
"分"
;
this
.
curScoreLab
.
string
=
"我的"
+
this
.
curScore
+
"分"
;
this
.
countdownLab
.
string
=
Utils
.
formatTime
(
this
.
totalTime
*
1000
);
this
.
countdownLab
.
string
=
Utils
.
formatTime
(
this
.
totalTime
*
1000
);
...
@@ -338,6 +346,7 @@ export class TransientCtr_1 extends Component {
...
@@ -338,6 +346,7 @@ export class TransientCtr_1 extends Component {
}
}
isGameOver
()
{
isGameOver
()
{
// return true;
if
(
this
.
curRoundIdx
+
1
>=
this
.
roundsIfo
.
length
)
{
if
(
this
.
curRoundIdx
+
1
>=
this
.
roundsIfo
.
length
)
{
//游戏结束
//游戏结束
return
true
;
return
true
;
...
...
assets/sceneBundle/games/unique-1/script/UniqueCtr_1.ts
View file @
92263bac
...
@@ -156,6 +156,14 @@ export class UniqueCtr_1 extends Component {
...
@@ -156,6 +156,14 @@ export class UniqueCtr_1 extends Component {
private
bestScore
:
number
=
0
;
private
bestScore
:
number
=
0
;
private
isPlayCountdownMus
=
false
;
private
isPlayCountdownMus
=
false
;
setGameData
(
resData
:
object
){
//@ts-ignore
if
(
resData
.
totalTime
){
//@ts-ignore
this
.
totalTime
=
resData
.
totalTime
;
}
}
start
()
{
start
()
{
let
outGameTime
=
Utils
.
getValueFromHref
(
"gameTime"
);
let
outGameTime
=
Utils
.
getValueFromHref
(
"gameTime"
);
if
(
outGameTime
!==
null
)
{
if
(
outGameTime
!==
null
)
{
...
...
assets/sceneBundle/games/unique-2/script/UniqueCtr_2.ts
View file @
92263bac
...
@@ -157,6 +157,14 @@ export class UniqueCtr_2 extends Component {
...
@@ -157,6 +157,14 @@ export class UniqueCtr_2 extends Component {
private
bestScore
:
number
=
0
;
private
bestScore
:
number
=
0
;
private
isPlayCountdownMus
=
false
;
private
isPlayCountdownMus
=
false
;
setGameData
(
resData
:
object
){
//@ts-ignore
if
(
resData
.
totalTime
){
//@ts-ignore
this
.
totalTime
=
resData
.
totalTime
;
}
}
start
()
{
start
()
{
if
(
EDITOR
)
{
if
(
EDITOR
)
{
return
;
return
;
...
...
assets/sceneBundle/games/unique/script/UniqueCtr.ts
View file @
92263bac
...
@@ -160,6 +160,14 @@ export class UniqueCtr extends Component {
...
@@ -160,6 +160,14 @@ export class UniqueCtr extends Component {
private
bestScore
:
number
=
0
;
private
bestScore
:
number
=
0
;
private
isPlayCountdownMus
=
false
;
private
isPlayCountdownMus
=
false
;
setGameData
(
resData
:
object
){
//@ts-ignore
if
(
resData
.
totalTime
){
//@ts-ignore
this
.
totalTime
=
resData
.
totalTime
;
}
}
start
()
{
start
()
{
if
(
EDITOR
)
{
if
(
EDITOR
)
{
return
;
return
;
...
...
assets/startFolder/script/LevelCfg.ts
View file @
92263bac
This diff is collapsed.
Click to expand it.
assets/startFolder/script/LevelHomeCtr.ts
View file @
92263bac
...
@@ -22,7 +22,7 @@ export class LevelHomeCtr extends Component {
...
@@ -22,7 +22,7 @@ export class LevelHomeCtr extends Component {
// [3]
// [3]
if
(
!
levelMgr
.
loadedOutData
)
{
if
(
!
levelMgr
.
loadedOutData
)
{
levelMgr
.
loadedOutData
=
true
;
levelMgr
.
loadedOutData
=
true
;
levelMgr
.
gameIdHead
=
1
0
;
levelMgr
.
gameIdHead
=
7
0
;
levelMgr
.
unLockCount
=
1
;
levelMgr
.
unLockCount
=
1
;
}
}
//
//
...
@@ -54,6 +54,7 @@ export class LevelHomeCtr extends Component {
...
@@ -54,6 +54,7 @@ export class LevelHomeCtr extends Component {
}
}
let
levelArr
=
levelMgr
.
getLevelItfArr
(
levelMgr
.
gameIdHead
);
let
levelArr
=
levelMgr
.
getLevelItfArr
(
levelMgr
.
gameIdHead
);
// console.log(`个数`, count);
// console.log(`个数`, count);
this
.
secondLayout
!
.
active
=
count
>
5
?
true
:
false
;
for
(
let
i
=
0
;
i
<
starArr
.
length
;
++
i
)
{
for
(
let
i
=
0
;
i
<
starArr
.
length
;
++
i
)
{
if
(
i
>=
count
)
starArr
[
i
].
node
.
active
=
false
;
if
(
i
>=
count
)
starArr
[
i
].
node
.
active
=
false
;
else
starArr
[
i
].
node
.
active
=
true
;
else
starArr
[
i
].
node
.
active
=
true
;
...
...
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