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
c0d3ad25
Commit
c0d3ad25
authored
Feb 03, 2021
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reposition
parent
9e54c779
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
308 additions
and
170 deletions
+308
-170
n_xuan1.fire
play/assets/tmpGame/scene/n_xuan1.fire
+220
-158
n_xuan1.js
play/assets/tmpGame/scene/n_xuan1.js
+16
-12
btn_left.png
play/assets/tmpGame/textures/btn_left.png
+0
-0
btn_left.png.meta
play/assets/tmpGame/textures/btn_left.png.meta
+36
-0
btn_right.png
play/assets/tmpGame/textures/btn_right.png
+0
-0
btn_right.png.meta
play/assets/tmpGame/textures/btn_right.png.meta
+36
-0
No files found.
play/assets/tmpGame/scene/n_xuan1.fire
View file @
c0d3ad25
This diff is collapsed.
Click to expand it.
play/assets/tmpGame/scene/n_xuan1.js
View file @
c0d3ad25
...
@@ -336,8 +336,8 @@ cc.Class({
...
@@ -336,8 +336,8 @@ cc.Class({
},
},
repositionButton
()
{
repositionButton
()
{
const
b
tn_restart
=
cc
.
find
(
'
Canvas/buttons/btn_restart
'
);
const
b
ottomButtons
=
cc
.
find
(
'
Canvas/bottomButtons
'
);
b
tn_restart
.
y
=
-
cc
.
winSize
.
height
/
2
+
40
b
ottomButtons
.
y
=
-
cc
.
winSize
.
height
/
2
+
40
},
},
initListeners
()
{
initListeners
()
{
...
@@ -348,7 +348,7 @@ cc.Class({
...
@@ -348,7 +348,7 @@ cc.Class({
const
bigLetterBase
=
cc
.
find
(
'
Canvas/LetterPicturePage/BigLetterBase
'
);
const
bigLetterBase
=
cc
.
find
(
'
Canvas/LetterPicturePage/BigLetterBase
'
);
const
pictureWordSmallBg
=
cc
.
find
(
'
Canvas/LetterPicturePage/PictureWordSmallBg
'
);
const
pictureWordSmallBg
=
cc
.
find
(
'
Canvas/LetterPicturePage/PictureWordSmallBg
'
);
const
pictureWordBigBg
=
cc
.
find
(
'
Canvas/LetterPicturePage/PictureWordBigBg
'
);
const
pictureWordBigBg
=
cc
.
find
(
'
Canvas/LetterPicturePage/PictureWordBigBg
'
);
const
btn_restart
=
cc
.
find
(
'
Canvas/buttons/btn_restart
'
);
const
btn_restart
=
cc
.
find
(
'
Canvas/b
ottomB
uttons/btn_restart
'
);
const
switch_b2s
=
cc
.
find
(
'
Canvas/buttons/switch_b2s
'
);
const
switch_b2s
=
cc
.
find
(
'
Canvas/buttons/switch_b2s
'
);
const
switch_s2b
=
cc
.
find
(
'
Canvas/buttons/switch_s2b
'
);
const
switch_s2b
=
cc
.
find
(
'
Canvas/buttons/switch_s2b
'
);
...
@@ -398,8 +398,10 @@ cc.Class({
...
@@ -398,8 +398,10 @@ cc.Class({
pictureWordSmallBg
.
active
=
!
pictureWordSmallBg
.
active
;
pictureWordSmallBg
.
active
=
!
pictureWordSmallBg
.
active
;
});
});
switch_b2s
.
on
(
'
click
'
,
()
=>
{
switch_b2s
.
on
(
'
click
'
,
async
()
=>
{
console
.
log
(
"
switch_b2s click
"
)
console
.
log
(
"
switch_b2s click
"
);
this
.
playEffect
(
'
按钮
'
);
await
jelly
(
switch_b2s
);
// this.playEffect(`letter${this.letter.toUpperCase()}`);
// this.playEffect(`letter${this.letter.toUpperCase()}`);
cc
.
tween
(
switch_b2s
)
cc
.
tween
(
switch_b2s
)
.
call
(()
=>
{
.
call
(()
=>
{
...
@@ -419,8 +421,10 @@ cc.Class({
...
@@ -419,8 +421,10 @@ cc.Class({
.
to
(
0.1
,
{
angle
:
0
})
.
to
(
0.1
,
{
angle
:
0
})
.
start
();
.
start
();
});
});
switch_s2b
.
on
(
'
click
'
,
()
=>
{
switch_s2b
.
on
(
'
click
'
,
async
()
=>
{
console
.
log
(
"
switch_s2b click
"
)
console
.
log
(
"
switch_s2b click
"
);
this
.
playEffect
(
'
按钮
'
);
await
jelly
(
switch_s2b
);
// this.playEffect(`letter${this.letter.toUpperCase()}`);
// this.playEffect(`letter${this.letter.toUpperCase()}`);
cc
.
tween
(
switch_s2b
)
cc
.
tween
(
switch_s2b
)
.
call
(()
=>
{
.
call
(()
=>
{
...
@@ -467,9 +471,9 @@ cc.Class({
...
@@ -467,9 +471,9 @@ cc.Class({
});
});
let
btnClicked
=
false
;
let
btnClicked
=
false
;
const
btnBefore
=
cc
.
find
(
'
Canvas/buttons/BtnBefore
'
);
const
btnBefore
=
cc
.
find
(
'
Canvas/b
ottomB
uttons/BtnBefore
'
);
btnBefore
.
active
=
false
;
btnBefore
.
active
=
false
;
const
btnNext
=
cc
.
find
(
'
Canvas/buttons/BtnNext
'
);
const
btnNext
=
cc
.
find
(
'
Canvas/b
ottomB
uttons/BtnNext
'
);
btnNext
.
active
=
false
;
btnNext
.
active
=
false
;
btnBefore
.
on
(
'
click
'
,
async
()
=>
{
btnBefore
.
on
(
'
click
'
,
async
()
=>
{
...
@@ -664,8 +668,8 @@ cc.Class({
...
@@ -664,8 +668,8 @@ cc.Class({
},
},
checkButton
()
{
checkButton
()
{
const
btnBefore
=
cc
.
find
(
'
Canvas/buttons/BtnBefore
'
);
const
btnBefore
=
cc
.
find
(
'
Canvas/b
ottomB
uttons/BtnBefore
'
);
const
btnNext
=
cc
.
find
(
'
Canvas/buttons/BtnNext
'
);
const
btnNext
=
cc
.
find
(
'
Canvas/b
ottomB
uttons/BtnNext
'
);
btnBefore
.
active
=
true
;
btnBefore
.
active
=
true
;
btnNext
.
active
=
true
;
btnNext
.
active
=
true
;
...
@@ -1047,7 +1051,7 @@ cc.Class({
...
@@ -1047,7 +1051,7 @@ cc.Class({
},
},
async
showOver
()
{
async
showOver
()
{
let
btn_restart
=
cc
.
find
(
'
Canvas/buttons/btn_restart
'
);
let
btn_restart
=
cc
.
find
(
'
Canvas/b
ottomB
uttons/btn_restart
'
);
btn_restart
.
active
=
false
;
btn_restart
.
active
=
false
;
// btn_restart.scaleX = 0;
// btn_restart.scaleX = 0;
// btn_restart.scaleY = 0;
// btn_restart.scaleY = 0;
...
...
play/assets/tmpGame/textures/btn_left.png
0 → 100644
View file @
c0d3ad25
3.94 KB
play/assets/tmpGame/textures/btn_left.png.meta
0 → 100644
View file @
c0d3ad25
{
"ver": "2.3.5",
"uuid": "e664ea42-0228-4880-abe6-7926e09fd4a3",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 45,
"height": 46,
"platformSettings": {},
"subMetas": {
"btn_left": {
"ver": "1.0.4",
"uuid": "f19d97eb-8b2c-47d6-be43-cfbd0cf5804e",
"rawTextureUuid": "e664ea42-0228-4880-abe6-7926e09fd4a3",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 45,
"height": 46,
"rawWidth": 45,
"rawHeight": 46,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
play/assets/tmpGame/textures/btn_right.png
0 → 100644
View file @
c0d3ad25
3.92 KB
play/assets/tmpGame/textures/btn_right.png.meta
0 → 100644
View file @
c0d3ad25
{
"ver": "2.3.5",
"uuid": "980d6008-1148-4382-bc43-67be986026e6",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 44,
"height": 46,
"platformSettings": {},
"subMetas": {
"btn_right": {
"ver": "1.0.4",
"uuid": "611de94c-3f79-48c3-a551-c9b3010bd82b",
"rawTextureUuid": "980d6008-1148-4382-bc43-67be986026e6",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 44,
"height": 46,
"rawWidth": 44,
"rawHeight": 46,
"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