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
4 years ago
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev commit
parent
095ffe42
Changes
12
Show 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
...
@@ -22,12 +22,27 @@
...
@@ -22,12 +22,27 @@
},
},
{
{
"__id__": 6
"__id__": 6
},
{
"__id__": 10
},
{
"__id__": 13
},
{
"__id__": 16
},
{
"__id__": 19
},
{
"__id__": 22
}
}
],
],
"_active": true,
"_active": true,
"_components": [],
"_components": [],
"_prefab": {
"_prefab": {
"__id__":
10
"__id__":
25
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -350,6 +365,541 @@
...
@@ -350,6 +365,541 @@
"fileId": "513EdjIndCGqHOWGtXbdR0",
"fileId": "513EdjIndCGqHOWGtXbdR0",
"sync": false
"sync": false
},
},
{
"__type__": "cc.Node",
"_name": "bgMain (1)",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 11
}
],
"_prefab": {
"__id__": 12
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "6ec21b50-5e65-4f15-962d-f0bc7468ebf6"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "9a5b96dc-35a4-464e-a0b2-d1a27aee336d"
},
"fileId": "fc5IpEQsxDOLVg+OERxPZb",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "bgMain (2)",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 14
}
],
"_prefab": {
"__id__": 15
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 13
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "2f63d74b-9f25-4f12-a213-446384ee63d5"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "9a5b96dc-35a4-464e-a0b2-d1a27aee336d"
},
"fileId": "42NlVFK6pINIrz1sVlvl3P",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "bgMain (3)",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 17
}
],
"_prefab": {
"__id__": 18
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "cadf7ebb-f981-4351-a9fa-e34697e0dd6c"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "9a5b96dc-35a4-464e-a0b2-d1a27aee336d"
},
"fileId": "801Gq7DOFLA5MZuj038NF8",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "bgMain (4)",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 20
}
],
"_prefab": {
"__id__": 21
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 19
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "f4b84ace-ef65-4cef-bd0f-c816c930d27c"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "9a5b96dc-35a4-464e-a0b2-d1a27aee336d"
},
"fileId": "b66kEjsaBLK608sUl+43vl",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "bgMain (5)",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 23
}
],
"_prefab": {
"__id__": 24
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 22
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "1b7f3b2d-9246-4140-b771-21e5e2c8441a"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "9a5b96dc-35a4-464e-a0b2-d1a27aee336d"
},
"fileId": "2b887soFlA+bNeCm3YO9R/",
"sync": false
},
{
{
"__type__": "cc.PrefabInfo",
"__type__": "cc.PrefabInfo",
"root": {
"root": {
...
...
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
())
{
...
...
This diff is collapsed.
Click to expand it.
play/assets/tmpGame/textures/bgMain (1).png
0 → 100644
View file @
79698385
765 KB
This diff is collapsed.
Click to expand it.
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
This diff is collapsed.
Click to expand it.
play/assets/tmpGame/textures/bgMain (2).png
0 → 100644
View file @
79698385
406 KB
This diff is collapsed.
Click to expand it.
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
This diff is collapsed.
Click to expand it.
play/assets/tmpGame/textures/bgMain (3).png
0 → 100644
View file @
79698385
673 KB
This diff is collapsed.
Click to expand it.
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
This diff is collapsed.
Click to expand it.
play/assets/tmpGame/textures/bgMain (4).png
0 → 100644
View file @
79698385
539 KB
This diff is collapsed.
Click to expand it.
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
This diff is collapsed.
Click to expand it.
play/assets/tmpGame/textures/bgMain (5).png
0 → 100644
View file @
79698385
829 KB
This diff is collapsed.
Click to expand it.
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
This diff is collapsed.
Click to expand it.
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