Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
Sbox_tracingLetters
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
Sbox_tracingLetters
Commits
79698385
Commit
79698385
authored
Dec 10, 2020
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev commit
parent
095ffe42
Changes
12
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
746 additions
and
3 deletions
+746
-3
BgNode.prefab
play/assets/tmpGame/prefabs/BgNode.prefab
+551
-1
n_xuan1.js
play/assets/tmpGame/scene/n_xuan1.js
+15
-2
bgMain (1).png
play/assets/tmpGame/textures/bgMain (1).png
+0
-0
bgMain (1).png.meta
play/assets/tmpGame/textures/bgMain (1).png.meta
+36
-0
bgMain (2).png
play/assets/tmpGame/textures/bgMain (2).png
+0
-0
bgMain (2).png.meta
play/assets/tmpGame/textures/bgMain (2).png.meta
+36
-0
bgMain (3).png
play/assets/tmpGame/textures/bgMain (3).png
+0
-0
bgMain (3).png.meta
play/assets/tmpGame/textures/bgMain (3).png.meta
+36
-0
bgMain (4).png
play/assets/tmpGame/textures/bgMain (4).png
+0
-0
bgMain (4).png.meta
play/assets/tmpGame/textures/bgMain (4).png.meta
+36
-0
bgMain (5).png
play/assets/tmpGame/textures/bgMain (5).png
+0
-0
bgMain (5).png.meta
play/assets/tmpGame/textures/bgMain (5).png.meta
+36
-0
No files found.
play/assets/tmpGame/prefabs/BgNode.prefab
View file @
79698385
This diff is collapsed.
Click to expand it.
play/assets/tmpGame/scene/n_xuan1.js
View file @
79698385
...
@@ -280,6 +280,7 @@ cc.Class({
...
@@ -280,6 +280,7 @@ cc.Class({
this
.
_imageResList
=
[];
this
.
_imageResList
=
[];
this
.
_audioResList
=
[];
this
.
_audioResList
=
[];
this
.
_lastDrawPos
=
-
1
;
this
.
_lastDrawPos
=
-
1
;
this
.
_lastMainBg
=
1
;
},
},
start
()
{
start
()
{
...
@@ -588,8 +589,20 @@ cc.Class({
...
@@ -588,8 +589,20 @@ cc.Class({
bgNode
.
addComponent
(
cc
.
Button
);
bgNode
.
addComponent
(
cc
.
Button
);
bgNode
.
on
(
'
click
'
,
()
=>
{
});
bgNode
.
on
(
'
click
'
,
()
=>
{
});
if
(
letter
!==
letter
.
toLowerCase
())
{
// if (letter !== letter.toLowerCase()) {
bgNode
.
getChildByName
(
'
BgLower
'
).
active
=
false
;
// bgNode.getChildByName('BgLower').active = false;
// }
for
(
let
i
=
1
;
i
<=
5
;
i
++
)
{
if
(
i
==
this
.
_lastMainBg
)
{
bgNode
.
getChildByName
(
`bgMain (
${
i
}
)`
).
active
=
true
;
}
else
{
bgNode
.
getChildByName
(
`bgMain (
${
i
}
)`
).
active
=
false
;
}
}
this
.
_lastMainBg
++
;
if
(
this
.
_lastMainBg
==
6
)
{
this
.
_lastMainBg
=
1
;
}
}
if
(
letter
==
letter
.
toLowerCase
())
{
if
(
letter
==
letter
.
toLowerCase
())
{
...
...
play/assets/tmpGame/textures/bgMain (1).png
0 → 100644
View file @
79698385
765 KB
play/assets/tmpGame/textures/bgMain (1).png.meta
0 → 100644
View file @
79698385
{
"ver": "2.3.5",
"uuid": "d97c2dd2-ceb7-486c-ba13-d15f031caf0d",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1280,
"height": 720,
"platformSettings": {},
"subMetas": {
"bgMain (1)": {
"ver": "1.0.4",
"uuid": "6ec21b50-5e65-4f15-962d-f0bc7468ebf6",
"rawTextureUuid": "d97c2dd2-ceb7-486c-ba13-d15f031caf0d",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1280,
"height": 720,
"rawWidth": 1280,
"rawHeight": 720,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
play/assets/tmpGame/textures/bgMain (2).png
0 → 100644
View file @
79698385
406 KB
play/assets/tmpGame/textures/bgMain (2).png.meta
0 → 100644
View file @
79698385
{
"ver": "2.3.5",
"uuid": "dfb8fccb-1a1d-49de-bb0a-71e07d96a417",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1280,
"height": 720,
"platformSettings": {},
"subMetas": {
"bgMain (2)": {
"ver": "1.0.4",
"uuid": "2f63d74b-9f25-4f12-a213-446384ee63d5",
"rawTextureUuid": "dfb8fccb-1a1d-49de-bb0a-71e07d96a417",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1280,
"height": 720,
"rawWidth": 1280,
"rawHeight": 720,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
play/assets/tmpGame/textures/bgMain (3).png
0 → 100644
View file @
79698385
673 KB
play/assets/tmpGame/textures/bgMain (3).png.meta
0 → 100644
View file @
79698385
{
"ver": "2.3.5",
"uuid": "5323d658-b7e3-4276-aa47-2c75b662164f",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1280,
"height": 720,
"platformSettings": {},
"subMetas": {
"bgMain (3)": {
"ver": "1.0.4",
"uuid": "cadf7ebb-f981-4351-a9fa-e34697e0dd6c",
"rawTextureUuid": "5323d658-b7e3-4276-aa47-2c75b662164f",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1280,
"height": 720,
"rawWidth": 1280,
"rawHeight": 720,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
play/assets/tmpGame/textures/bgMain (4).png
0 → 100644
View file @
79698385
539 KB
play/assets/tmpGame/textures/bgMain (4).png.meta
0 → 100644
View file @
79698385
{
"ver": "2.3.5",
"uuid": "b90de060-23bd-4e0a-9d69-cf068da6f516",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1280,
"height": 720,
"platformSettings": {},
"subMetas": {
"bgMain (4)": {
"ver": "1.0.4",
"uuid": "f4b84ace-ef65-4cef-bd0f-c816c930d27c",
"rawTextureUuid": "b90de060-23bd-4e0a-9d69-cf068da6f516",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1280,
"height": 720,
"rawWidth": 1280,
"rawHeight": 720,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
play/assets/tmpGame/textures/bgMain (5).png
0 → 100644
View file @
79698385
829 KB
play/assets/tmpGame/textures/bgMain (5).png.meta
0 → 100644
View file @
79698385
{
"ver": "2.3.5",
"uuid": "aa267dfa-6154-435f-b7f6-71ce95b71528",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1280,
"height": 720,
"platformSettings": {},
"subMetas": {
"bgMain (5)": {
"ver": "1.0.4",
"uuid": "1b7f3b2d-9246-4140-b771-21e5e2c8441a",
"rawTextureUuid": "aa267dfa-6154-435f-b7f6-71ce95b71528",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1280,
"height": 720,
"rawWidth": 1280,
"rawHeight": 720,
"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