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
c17f6288
Commit
c17f6288
authored
Oct 13, 2021
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
食物派对和快问快答加入玩法说明
parent
2941a6e8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
165 additions
and
28 deletions
+165
-28
编组 3备份 7.png.meta
assets/sceneBundle/games/commonView/image/编组 3备份 7.png.meta
+2
-2
编组 3备份 8.png
assets/sceneBundle/games/commonView/image/编组 3备份 8.png
+0
-0
编组 3备份 8.png.meta
assets/sceneBundle/games/commonView/image/编组 3备份 8.png.meta
+74
-0
ChallengeSuccView.prefab
...neBundle/games/commonView/prefab/ChallengeSuccView.prefab
+11
-14
FoodForTheParty_1.scene
...undle/games/foodForTheParty/scene/FoodForTheParty_1.scene
+0
-0
FoodForTheParty_2.scene
...undle/games/foodForTheParty/scene/FoodForTheParty_2.scene
+0
-0
FoodForThePartyCtr.ts
...Bundle/games/foodForTheParty/script/FoodForThePartyCtr.ts
+34
-2
QuickQuiz_1.scene
assets/sceneBundle/games/quickQuiz/scene/QuickQuiz_1.scene
+0
-0
QuickQuizCtr.ts
assets/sceneBundle/games/quickQuiz/script/QuickQuizCtr.ts
+35
-5
SudokuCtr.ts
assets/sceneBundle/games/sudoku/script/SudokuCtr.ts
+1
-0
Unique_1_diff2.scene
assets/sceneBundle/games/unique-2/scene/Unique_1_diff2.scene
+1
-1
LevelCfg.ts
assets/startFolder/script/LevelCfg.ts
+6
-3
LevelHomeCtr.ts
assets/startFolder/script/LevelHomeCtr.ts
+1
-1
No files found.
assets/sceneBundle/games/commonView/image/编组 3备份 7.png.meta
View file @
c17f6288
...
...
@@ -51,8 +51,8 @@
"rawHeight": 110,
"borderTop": 0,
"borderBottom": 0,
"borderLeft":
0
,
"borderRight":
0
,
"borderLeft":
53
,
"borderRight":
51
,
"packable": true,
"isUuid": true,
"imageUuidOrDatabaseUri": "e46a0e17-feab-47b2-a420-68e833a7f45f@6c48a",
...
...
assets/sceneBundle/games/commonView/image/编组 3备份 8.png
0 → 100644
View file @
c17f6288
7.2 KB
assets/sceneBundle/games/commonView/image/编组 3备份 8.png.meta
0 → 100644
View file @
c17f6288
{
"ver": "1.0.21",
"importer": "image",
"imported": true,
"uuid": "fc3861cd-4450-42f8-93c8-d8eb45c13e60",
"files": [
".png",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "fc3861cd-4450-42f8-93c8-d8eb45c13e60@6c48a",
"displayName": "编组 3备份 8",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "fc3861cd-4450-42f8-93c8-d8eb45c13e60"
},
"ver": "1.0.21",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "fc3861cd-4450-42f8-93c8-d8eb45c13e60@f9941",
"displayName": "编组 3备份 8",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 240,
"height": 110,
"rawWidth": 240,
"rawHeight": 110,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 191,
"borderRight": 25,
"packable": true,
"isUuid": true,
"imageUuidOrDatabaseUri": "fc3861cd-4450-42f8-93c8-d8eb45c13e60@6c48a",
"atlasUuid": ""
},
"ver": "1.0.9",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"hasAlpha": true,
"type": "sprite-frame",
"redirect": "fc3861cd-4450-42f8-93c8-d8eb45c13e60@f9941"
}
}
assets/sceneBundle/games/commonView/prefab/ChallengeSuccView.prefab
View file @
c17f6288
...
...
@@ -853,7 +853,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 2
4
0,
"width": 2
8
0,
"height": 110
},
"_anchorPoint": {
...
...
@@ -893,9 +893,9 @@
"__uuid__": "e46a0e17-feab-47b2-a420-68e833a7f45f@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type":
0
,
"_type":
1
,
"_fillType": 0,
"_sizeMode":
1
,
"_sizeMode":
0
,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
...
...
@@ -972,7 +972,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "
8ekrwCGFJAf4/g0sSsV4qu
"
"fileId": "
22Zg5K6ZhBfKuBfamLGz7p
"
},
{
"__type__": "cc.ClickEvent",
...
...
@@ -992,7 +992,7 @@
"asset": {
"__id__": 0
},
"fileId": "
575AJ1gZNLmJ65Hg90j7us
"
"fileId": "
adHlrsiSNAYqMH9zH6Fw7j
"
},
{
"__type__": "cc.Node",
...
...
@@ -1071,7 +1071,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x":
67.014
,
"x":
106.169
,
"y": 4.469,
"z": 0
},
...
...
@@ -1191,7 +1191,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 2
4
0,
"width": 2
8
0,
"height": 110
},
"_anchorPoint": {
...
...
@@ -1228,12 +1228,12 @@
"a": 255
},
"_spriteFrame": {
"__uuid__": "
0f027098-877e-40c1-84d2-fa8a96cadf53
@f9941",
"__uuid__": "
fc3861cd-4450-42f8-93c8-d8eb45c13e60
@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type":
0
,
"_type":
1
,
"_fillType": 0,
"_sizeMode":
1
,
"_sizeMode":
0
,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
...
...
@@ -1296,10 +1296,7 @@
"b": 124,
"a": 255
},
"_normalSprite": {
"__uuid__": "0f027098-877e-40c1-84d2-fa8a96cadf53@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_normalSprite": null,
"_hoverSprite": null,
"_pressedSprite": null,
"_disabledSprite": null,
...
...
assets/sceneBundle/games/foodForTheParty/scene/FoodForTheParty_1.scene
View file @
c17f6288
This diff is collapsed.
Click to expand it.
assets/sceneBundle/games/foodForTheParty/scene/FoodForTheParty_2.scene
View file @
c17f6288
This diff is collapsed.
Click to expand it.
assets/sceneBundle/games/foodForTheParty/script/FoodForThePartyCtr.ts
View file @
c17f6288
...
...
@@ -9,6 +9,7 @@ import { GameEndDataItf, htmlSendDataMgr } from '../../../../startFolder/script/
import
{
BeginCountdownView
}
from
'../../commonView/script/BeginCountdownView'
;
import
{
ChallengeFailView
}
from
'../../commonView/script/ChallengeFailView'
;
import
{
ChallengeSuccView
}
from
'../../commonView/script/ChallengeSuccView'
;
import
{
GameDescView
}
from
'../../commonView/script/GameDescView'
;
import
{
FFTPPipAnswerView
}
from
'./FFTPPipAnswerView'
;
import
{
FFTPPipCtr
}
from
'./FFTPPipCtr'
;
const
{
ccclass
,
property
}
=
_decorator
;
...
...
@@ -88,6 +89,24 @@ export class FoodForThePartyCtr extends Component {
private
costTime
=
0
;
private
isPlayCountdownMus
=
false
;
private
isShowGameDescViewOnce
=
false
;
showGameDescView
()
{
viewMgr
.
openView
(
VIEW_DEF
.
GameDescView
,
(
node
)
=>
{
node
.
getComponent
(
GameDescView
)?.
setDesc
(
"记住进入每个管道中的每种食物的数量。"
);
});
}
onCloseGameDescView
()
{
if
(
!
this
.
isShowGameDescViewOnce
)
{
this
.
isShowGameDescViewOnce
=
true
;
this
.
roundStart
();
}
else
{
this
.
gameState
=
GAME_STATE
.
RUN
;
}
}
setGameData
(
resData
:
object
)
{
console
.
log
(
`kkkkkkttttttttt`
);
//@ts-ignore
...
...
@@ -115,6 +134,14 @@ export class FoodForThePartyCtr extends Component {
//@ts-ignore
this
.
oneScore
=
resData
.
oneScore
;
}
//@ts-ignore
if
(
resData
.
isShowGuide
)
{
//@ts-ignore
this
.
isShowGameDescViewOnce
=
false
;
}
else
{
this
.
isShowGameDescViewOnce
=
true
;
}
}
start
()
{
...
...
@@ -131,11 +158,16 @@ export class FoodForThePartyCtr extends Component {
director
.
on
(
"finish_game"
,
()
=>
{
});
director
.
on
(
"begin_countdown_end"
,
()
=>
{
//引导
this
.
roundStart
();
if
(
!
this
.
isShowGameDescViewOnce
)
{
this
.
showGameDescView
();
}
else
{
this
.
roundStart
();
}
},
this
);
director
.
on
(
"game_desc_close"
,
this
.
onCloseGameDescView
,
this
);
director
.
on
(
"add_score"
,
()
=>
{
this
.
curScore
+=
this
.
oneScore
;
this
.
curScoreLab
.
string
=
"我的"
+
this
.
curScore
+
"分"
;
...
...
assets/sceneBundle/games/quickQuiz/scene/QuickQuiz_1.scene
View file @
c17f6288
This diff is collapsed.
Click to expand it.
assets/sceneBundle/games/quickQuiz/script/QuickQuizCtr.ts
View file @
c17f6288
...
...
@@ -9,6 +9,7 @@ import { GameEndDataItf, htmlSendDataMgr } from '../../../../startFolder/script/
import
{
BeginCountdownView
}
from
'../../commonView/script/BeginCountdownView'
;
import
{
ChallengeFailView
}
from
'../../commonView/script/ChallengeFailView'
;
import
{
ChallengeSuccView
}
from
'../../commonView/script/ChallengeSuccView'
;
import
{
GameDescView
}
from
'../../commonView/script/GameDescView'
;
import
{
SwitchErrorView
}
from
'../../commonView/script/SwitchErrorView'
;
import
{
SwitchOkView
}
from
'../../commonView/script/SwitchOkView'
;
import
{
QQDrawingMachineCtr
}
from
'./QQDrawingMachineCtr'
;
...
...
@@ -59,6 +60,19 @@ export class QuickQuizCtr extends Component {
private
costTime
=
0
;
private
isPlayCountdownMus
=
false
;
private
isShowGameDescViewOnce
=
false
;
showGameDescView
()
{
this
.
isShowGameDescViewOnce
=
true
;
viewMgr
.
openView
(
VIEW_DEF
.
GameDescView
,
(
node
)
=>
{
node
.
getComponent
(
GameDescView
)?.
setDesc
(
"当小球落入某个洞时,判断其是否符合该洞所对应的题目。
\
n正确点击勾,错误点击叉。"
);
});
}
onCloseGameDescView
()
{
this
.
gameState
=
GAME_STATE
.
RUN
;
}
setGameData
(
resData
:
object
)
{
//@ts-ignore
if
(
resData
.
totalTime
)
{
...
...
@@ -70,11 +84,19 @@ export class QuickQuizCtr extends Component {
//@ts-ignore
this
.
succScore
=
resData
.
succScore
;
}
//@ts-ignore
if
(
resData
.
oneScore
)
{
//@ts-ignore
if
(
resData
.
oneScore
)
{
//@ts-ignore
this
.
oneScore
=
resData
.
oneScore
;
}
//@ts-ignore
if
(
resData
.
isShowGuide
)
{
//@ts-ignore
this
.
isShowGameDescViewOnce
=
false
;
}
else
{
this
.
isShowGameDescViewOnce
=
true
;
}
}
start
()
{
...
...
@@ -88,19 +110,27 @@ export class QuickQuizCtr extends Component {
});
director
.
on
(
"finish_game"
,
()
=>
{
});
director
.
on
(
"begin_countdown_end"
,
()
=>
{
//引导
this
.
gameState
=
GAME_STATE
.
RUN
;
if
(
!
this
.
isShowGameDescViewOnce
)
{
this
.
gameState
=
GAME_STATE
.
READY
;
this
.
showGameDescView
();
}
else
{
this
.
gameState
=
GAME_STATE
.
RUN
;
}
},
this
);
director
.
on
(
"game_desc_close"
,
this
.
onCloseGameDescView
,
this
);
this
.
gameStart
();
}
onDestroy
(){
onDestroy
()
{
director
.
off
(
"continue_game"
);
director
.
off
(
"begin_countdown_end"
);
director
.
off
(
"game_desc_close"
,
this
.
onCloseGameDescView
,
this
);
}
update
(
deltaTime
:
number
)
{
...
...
assets/sceneBundle/games/sudoku/script/SudokuCtr.ts
View file @
c17f6288
...
...
@@ -48,6 +48,7 @@ export class SudokuCtr extends Component {
private
isShowGameDescViewOnce
=
false
;
showGameDescView
()
{
this
.
isShowGameDescViewOnce
=
true
;
viewMgr
.
openView
(
VIEW_DEF
.
GameDescView
,
(
node
)
=>
{
node
.
getComponent
(
GameDescView
)?.
setDesc
(
"填入数字使同行、同列不存在相同数字,
\
n同种颜色的格子里也不要出现相同数字。
\
n如果填入数字错误可以使用橡皮擦擦掉数字,
\
n也可点击还原按钮直接恢复最初状态。"
);
});
...
...
assets/sceneBundle/games/unique-2/scene/Unique_1_diff2.scene
View file @
c17f6288
...
...
@@ -320,7 +320,7 @@
"_priority": 1073741824,
"_fov": 45,
"_fovAxis": 0,
"_orthoHeight":
375
,
"_orthoHeight":
414.4124472573839
,
"_near": 1,
"_far": 2000,
"_color": {
...
...
assets/startFolder/script/LevelCfg.ts
View file @
c17f6288
...
...
@@ -679,7 +679,8 @@ export const levelCfg: OneVarLevelItf[] = [
foodVarCount
:
2
,
succScore
:
5
,
oneScore
:
1
,
foodNumCount
:
6
foodNumCount
:
6
,
isShowGuide
:
true
}
}
,
{
...
...
@@ -750,7 +751,8 @@ export const levelCfg: OneVarLevelItf[] = [
foodVarCount
:
2
,
succScore
:
5
,
oneScore
:
1
,
foodNumCount
:
5
foodNumCount
:
5
,
isShowGuide
:
true
}
}
,
{
...
...
@@ -832,7 +834,8 @@ export const levelCfg: OneVarLevelItf[] = [
resData
:
{
totalTime
:
30
,
succScore
:
15
,
oneScore
:
1
oneScore
:
1
,
isShowGuide
:
true
}
}
,
{
...
...
assets/startFolder/script/LevelHomeCtr.ts
View file @
c17f6288
...
...
@@ -23,7 +23,7 @@ export class LevelHomeCtr extends Component {
// [3]
if
(
!
levelMgr
.
loadedOutData
)
{
levelMgr
.
loadedOutData
=
true
;
levelMgr
.
gameIdHead
=
1
30
;
levelMgr
.
gameIdHead
=
1
01
;
levelMgr
.
unLockCount
=
10
;
if
(
Utils
.
getValueFromHref
(
"gameIdHead"
)){
levelMgr
.
gameIdHead
=
Number
(
Utils
.
getValueFromHref
(
"gameIdHead"
));
...
...
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