Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
op72_single
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
template admin
op72_single
Commits
65896787
Commit
65896787
authored
Nov 26, 2022
by
yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
d3849203
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
op72_single.fire
assets/op72_single/scene/op72_single.fire
+2
-2
op72_single.ts
assets/op72_single/scene/op72_single.ts
+4
-4
Game.ts
assets/op72_single/scene/tool/Game.ts
+1
-1
No files found.
assets/op72_single/scene/op72_single.fire
View file @
65896787
...
@@ -1951,8 +1951,8 @@
...
@@ -1951,8 +1951,8 @@
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
0
,
85.557
,
-7.689
,
13.078
,
0,
0,
0,
0,
0,
0,
...
...
assets/op72_single/scene/op72_single.ts
View file @
65896787
...
@@ -110,7 +110,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -110,7 +110,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
// 所有全局变量 默认都是null
// 所有全局变量 默认都是null
}
}
private
audioId
:
any
;
private
audioId
:
any
;
async
initView
()
{
private
initView
()
{
this
.
catPlayAni
(
Game
.
getIns
().
beginAudio
,
()
=>
{
this
.
catPlayAni
(
Game
.
getIns
().
beginAudio
,
()
=>
{
this
.
startCountTime
();
this
.
startCountTime
();
this
.
gameStart
();
this
.
gameStart
();
...
@@ -132,9 +132,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -132,9 +132,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
// data.stone = Math.floor(10 * data.right / data.total);
// data.stone = Math.floor(10 * data.right / data.total);
// this.log("total: " + data.total + " right: " + data.right + " stone: " + data.stone);
// this.log("total: " + data.total + " right: " + data.right + " stone: " + data.stone);
// onHomeworkFinish(data)
// onHomeworkFinish(data)
//
let leaf_ske = cc.find("leaf_ske", this.node);
let
leaf_ske
=
cc
.
find
(
"
leaf_ske
"
,
this
.
node
);
//
leaf_ske.active = true;
leaf_ske
.
active
=
true
;
//
playDragonBoneAnimation(leaf_ske, "normal", 1);
playDragonBoneAnimation
(
leaf_ske
,
"
normal
"
,
1
);
cc
.
audioEngine
.
stopAllEffects
();
cc
.
audioEngine
.
stopAllEffects
();
this
.
catPlayAni
(
Game
.
getIns
().
endAudio
,
()
=>
{
this
.
catPlayAni
(
Game
.
getIns
().
endAudio
,
()
=>
{
// this.dbCat.active = false;
// this.dbCat.active = false;
...
...
assets/op72_single/scene/tool/Game.ts
View file @
65896787
...
@@ -156,7 +156,7 @@ export default class Game {
...
@@ -156,7 +156,7 @@ export default class Game {
public
init
(
data
)
{
public
init
(
data
)
{
this
.
title
=
data
.
title
;
this
.
title
=
data
.
title
;
this
.
start
=
false
;
this
.
start
=
false
;
this
.
beginAudio
=
data
.
guideBegin_audio_url
||
""
;
this
.
beginAudio
=
data
.
beginAudio
||
""
;
this
.
endAudio
=
data
.
endAudio
||
""
;
this
.
endAudio
=
data
.
endAudio
||
""
;
this
.
loadingAudio
=
data
.
startLoadingAudio
||
""
;
this
.
loadingAudio
=
data
.
startLoadingAudio
||
""
;
this
.
waitAudio
=
data
.
waitAudio
||
""
;
this
.
waitAudio
=
data
.
waitAudio
||
""
;
...
...
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