Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dg18_tianci
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
dg18_tianci
Commits
a193b254
Commit
a193b254
authored
Dec 19, 2023
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加安全空间
parent
1ccf0985
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
272 additions
and
154 deletions
+272
-154
light.mp3
assets/dg18_tianci/audios/light.mp3
+0
-0
light.mp3.meta
assets/dg18_tianci/audios/light.mp3.meta
+7
-0
dg18_tianci.fire
assets/dg18_tianci/scene/dg18_tianci.fire
+260
-150
dg18_tianci.ts
assets/dg18_tianci/scene/dg18_tianci.ts
+3
-2
form.component.html
form/src/app/form/form.component.html
+2
-2
No files found.
assets/dg18_tianci/audios/light.mp3
0 → 100644
View file @
a193b254
File added
assets/dg18_tianci/audios/light.mp3.meta
0 → 100644
View file @
a193b254
{
"ver": "2.0.1",
"uuid": "047dfbf2-4e45-4f85-8947-bff3577634b8",
"downloadMode": 0,
"duration": 3.552653,
"subMetas": {}
}
\ No newline at end of file
assets/dg18_tianci/scene/dg18_tianci.fire
View file @
a193b254
This diff is collapsed.
Click to expand it.
assets/dg18_tianci/scene/dg18_tianci.ts
View file @
a193b254
...
@@ -133,7 +133,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -133,7 +133,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
if
(
this
.
current
==
0
)
{
if
(
this
.
current
==
0
)
{
this
.
scheduleOnce
(()
=>
{
this
.
scheduleOnce
(()
=>
{
this
.
playLocalAudio
(
'
bettery
'
).
then
(()
=>
{
this
.
playLocalAudio
(
'
bettery
'
).
then
(()
=>
{
pg
.
audio
.
playLocalBgm
(
pg
.
view
.
find
(
this
,
'
res/audio/bgm
'
))
//
pg.audio.playLocalBgm(pg.view.find(this, 'res/audio/bgm'))
})
})
},
delayTime
)
},
delayTime
)
}
else
{
}
else
{
...
@@ -151,7 +151,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -151,7 +151,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
item
.
x
=
0
;
item
.
x
=
0
;
let
item_text
=
pg
.
view
.
find
(
item
,
'
item_text
'
);
let
item_text
=
pg
.
view
.
find
(
item
,
'
item_text
'
);
pg
.
view
.
setString
(
pg
.
view
.
find
(
item_text
,
'
text
'
),
data
.
text
)
pg
.
view
.
setString
(
pg
.
view
.
find
(
item_text
,
'
text
'
),
data
.
text
)
pg
.
view
.
setColor
(
pg
.
view
.
find
(
item_text
,
'
text
'
),
data
.
fontColor
)
pg
.
view
.
setColor
(
pg
.
view
.
find
(
item_text
,
'
text
'
),
"
#FEFE24
"
)
for
(
let
n
=
1
;
n
<=
6
;
n
++
)
{
for
(
let
n
=
1
;
n
<=
6
;
n
++
)
{
pg
.
view
.
visible
(
pg
.
view
.
find
(
item
,
'
bg/img_battery
'
+
n
),
false
)
pg
.
view
.
visible
(
pg
.
view
.
find
(
item
,
'
bg/img_battery
'
+
n
),
false
)
...
@@ -331,6 +331,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -331,6 +331,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
if
(
this
.
successArr
.
length
==
this
.
currentQuestion
.
hotZoneItemArr
.
length
)
{
if
(
this
.
successArr
.
length
==
this
.
currentQuestion
.
hotZoneItemArr
.
length
)
{
cc
.
tween
(
this
.
img_dengdai
).
repeat
(
2
,
cc
.
tween
().
to
(
0.2
,
{
opacity
:
255
}).
to
(
0.2
,
{
opacity
:
50
})).
to
(
0.2
,
{
opacity
:
255
}).
start
();
cc
.
tween
(
this
.
img_dengdai
).
repeat
(
2
,
cc
.
tween
().
to
(
0.2
,
{
opacity
:
255
}).
to
(
0.2
,
{
opacity
:
50
})).
to
(
0.2
,
{
opacity
:
255
}).
start
();
cc
.
tween
(
this
.
img_dengpao
).
repeatForever
(
cc
.
tween
().
to
(
0.2
,
{
opacity
:
255
}).
to
(
0.2
,
{
opacity
:
50
})).
start
();
cc
.
tween
(
this
.
img_dengpao
).
repeatForever
(
cc
.
tween
().
to
(
0.2
,
{
opacity
:
255
}).
to
(
0.2
,
{
opacity
:
50
})).
start
();
this
.
playLocalAudio
(
'
light
'
)
this
.
scheduleOnce
(()
=>
{
this
.
scheduleOnce
(()
=>
{
cc
.
Tween
.
stopAllByTarget
(
this
.
img_dengdai
)
cc
.
Tween
.
stopAllByTarget
(
this
.
img_dengdai
)
cc
.
Tween
.
stopAllByTarget
(
this
.
img_dengpao
)
cc
.
Tween
.
stopAllByTarget
(
this
.
img_dengpao
)
...
...
form/src/app/form/form.component.html
View file @
a193b254
...
@@ -119,9 +119,9 @@
...
@@ -119,9 +119,9 @@
<div>
<div>
文字字号:
<input
type=
"text"
nz-input
[(
ngModel
)]="
question
.
hotZoneFontObj
.
size
"
(
blur
)="
changeSize
()"
>
文字字号:
<input
type=
"text"
nz-input
[(
ngModel
)]="
question
.
hotZoneFontObj
.
size
"
(
blur
)="
changeSize
()"
>
</div>
</div>
<div>
<
!-- <
div>
文字颜色:<input type="text" nz-input [(ngModel)]="question.hotZoneFontObj.color" (blur)="changeSize()">
文字颜色:<input type="text" nz-input [(ngModel)]="question.hotZoneFontObj.color" (blur)="changeSize()">
</div>
</div>
-->
</div>
</div>
<div
*
ngIf=
"showHotZone"
class=
"border-dashed"
style=
"margin: 20px;width: 1200px;"
>
<div
*
ngIf=
"showHotZone"
class=
"border-dashed"
style=
"margin: 20px;width: 1200px;"
>
...
...
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