Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dfzx_ac2
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
dfzx_ac2
Commits
f3911585
Commit
f3911585
authored
Mar 21, 2021
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev commit
parent
2bd86de7
Changes
13
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
616 additions
and
124 deletions
+616
-124
Scene.fire
play/assets/tmpGame/scene/Scene.fire
+356
-65
Cartoon.js
play/assets/tmpGame/script/Cartoon.js
+0
-1
GameLogic.js
play/assets/tmpGame/script/GameLogic.js
+136
-54
util.js
play/assets/tmpGame/script/util.js
+12
-0
speaker.png
play/assets/tmpGame/textures/speaker.png
+0
-0
speaker_0.png
play/assets/tmpGame/textures/speaker_0.png
+0
-0
speaker_0.png.meta
play/assets/tmpGame/textures/speaker_0.png.meta
+4
-4
speaker_1.png
play/assets/tmpGame/textures/speaker_1.png
+0
-0
speaker_1.png.meta
play/assets/tmpGame/textures/speaker_1.png.meta
+36
-0
speaker_2.png
play/assets/tmpGame/textures/speaker_2.png
+0
-0
speaker_2.png.meta
play/assets/tmpGame/textures/speaker_2.png.meta
+36
-0
speaker_3.png
play/assets/tmpGame/textures/speaker_3.png
+0
-0
speaker_3.png.meta
play/assets/tmpGame/textures/speaker_3.png.meta
+36
-0
No files found.
play/assets/tmpGame/scene/Scene.fire
View file @
f3911585
This diff is collapsed.
Click to expand it.
play/assets/tmpGame/script/Cartoon.js
View file @
f3911585
...
@@ -151,7 +151,6 @@ export default class Cartoon {
...
@@ -151,7 +151,6 @@ export default class Cartoon {
subscribeTouchEvent
(
key
,
callBack
,
newEvent
)
{
subscribeTouchEvent
(
key
,
callBack
,
newEvent
)
{
if
(
!
this
.
touchEventCallback
[
key
]
||
newEvent
)
{
if
(
!
this
.
touchEventCallback
[
key
]
||
newEvent
)
{
this
.
touchEventCallback
[
key
]
=
callBack
this
.
touchEventCallback
[
key
]
=
callBack
console
.
log
(
"
DVDVDV
"
,
this
.
elements
[
key
].
node
)
this
.
elements
[
key
].
node
.
off
(
cc
.
Node
.
EventType
.
TOUCH_START
)
this
.
elements
[
key
].
node
.
off
(
cc
.
Node
.
EventType
.
TOUCH_START
)
this
.
elements
[
key
].
node
.
on
(
cc
.
Node
.
EventType
.
TOUCH_START
,
()
=>
{
this
.
elements
[
key
].
node
.
on
(
cc
.
Node
.
EventType
.
TOUCH_START
,
()
=>
{
if
(
this
.
touchEventCallback
[
key
])
{
if
(
this
.
touchEventCallback
[
key
])
{
...
...
play/assets/tmpGame/script/GameLogic.js
View file @
f3911585
This diff is collapsed.
Click to expand it.
play/assets/tmpGame/script/util.js
View file @
f3911585
...
@@ -131,4 +131,16 @@ export function btnClickAnima(btn, time=0.15, rate=1.05) {
...
@@ -131,4 +131,16 @@ export function btnClickAnima(btn, time=0.15, rate=1.05) {
.
to
(
time
/
2
,
{
scale
:
btn
.
tmpScale
})
.
to
(
time
/
2
,
{
scale
:
btn
.
tmpScale
})
.
start
()
.
start
()
})
})
}
export
function
onHomeworkFinish
()
{
const
middleLayer
=
cc
.
find
(
'
middleLayer
'
);
if
(
middleLayer
)
{
const
middleLayerComponent
=
middleLayer
.
getComponent
(
'
middleLayer
'
);
if
(
middleLayerComponent
.
role
==
'
student
'
)
{
middleLayerComponent
.
onHomeworkFinish
(()
=>
{
});
}
}
else
{
console
.
log
(
'
onHomeworkFinish
'
);
}
}
}
\ No newline at end of file
play/assets/tmpGame/textures/speaker.png
deleted
100644 → 0
View file @
2bd86de7
7.65 KB
play/assets/tmpGame/textures/speaker_0.png
0 → 100644
View file @
f3911585
8.85 KB
play/assets/tmpGame/textures/speaker.png.meta
→
play/assets/tmpGame/textures/speaker
_0
.png.meta
View file @
f3911585
{
{
"ver": "2.3.5",
"ver": "2.3.5",
"uuid": "
a0fb37da-d793-4eb6-80e4-ccec20a63bbb
",
"uuid": "
3f83a6a1-d6df-485e-b389-5baa1f868390
",
"type": "sprite",
"type": "sprite",
"wrapMode": "clamp",
"wrapMode": "clamp",
"filterMode": "bilinear",
"filterMode": "bilinear",
...
@@ -11,10 +11,10 @@
...
@@ -11,10 +11,10 @@
"height": 101,
"height": 101,
"platformSettings": {},
"platformSettings": {},
"subMetas": {
"subMetas": {
"speaker": {
"speaker
_0
": {
"ver": "1.0.4",
"ver": "1.0.4",
"uuid": "
570d2e53-3fbf-4959-9333-0d2a16b136db
",
"uuid": "
4a47635c-e5dd-469d-9655-13378bc366a1
",
"rawTextureUuid": "
a0fb37da-d793-4eb6-80e4-ccec20a63bbb
",
"rawTextureUuid": "
3f83a6a1-d6df-485e-b389-5baa1f868390
",
"trimType": "auto",
"trimType": "auto",
"trimThreshold": 1,
"trimThreshold": 1,
"rotated": false,
"rotated": false,
...
...
play/assets/tmpGame/textures/speaker_1.png
0 → 100644
View file @
f3911585
8.47 KB
play/assets/tmpGame/textures/speaker_1.png.meta
0 → 100644
View file @
f3911585
{
"ver": "2.3.5",
"uuid": "4afa6af5-0247-4b0b-84cb-ca73c43da096",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 95,
"height": 101,
"platformSettings": {},
"subMetas": {
"speaker_1": {
"ver": "1.0.4",
"uuid": "24a58311-9794-4337-8251-638dd476ff9c",
"rawTextureUuid": "4afa6af5-0247-4b0b-84cb-ca73c43da096",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 95,
"height": 101,
"rawWidth": 95,
"rawHeight": 101,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
play/assets/tmpGame/textures/speaker_2.png
0 → 100644
View file @
f3911585
8.16 KB
play/assets/tmpGame/textures/speaker_2.png.meta
0 → 100644
View file @
f3911585
{
"ver": "2.3.5",
"uuid": "b44918f4-0131-4676-9a71-870c316d5b2d",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 95,
"height": 101,
"platformSettings": {},
"subMetas": {
"speaker_2": {
"ver": "1.0.4",
"uuid": "780e7ebc-11dc-4e03-b0b3-f7f21ea25534",
"rawTextureUuid": "b44918f4-0131-4676-9a71-870c316d5b2d",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 95,
"height": 101,
"rawWidth": 95,
"rawHeight": 101,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
play/assets/tmpGame/textures/speaker_3.png
0 → 100644
View file @
f3911585
7.77 KB
play/assets/tmpGame/textures/speaker_3.png.meta
0 → 100644
View file @
f3911585
{
"ver": "2.3.5",
"uuid": "1011b81a-caf7-4afa-b8a9-445d3eeadb7c",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 95,
"height": 101,
"platformSettings": {},
"subMetas": {
"speaker_3": {
"ver": "1.0.4",
"uuid": "d94751b4-dfc9-4597-806e-6c315f7d3e75",
"rawTextureUuid": "1011b81a-caf7-4afa-b8a9-445d3eeadb7c",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 95,
"height": 101,
"rawWidth": 95,
"rawHeight": 101,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
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