Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MRBR05
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
MRBR05
Commits
71353c0b
Commit
71353c0b
authored
May 22, 2022
by
yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
5.22调整
parent
fd39dca4
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
160 additions
and
151 deletions
+160
-151
mrbr05_layout_mouse.ts
assets/MRBR05/mouse/small/mrbr05_layout_mouse.ts
+3
-0
MRBR05.fire
assets/MRBR05/scene/MRBR05.fire
+143
-143
MRBR05.ts
assets/MRBR05/scene/MRBR05.ts
+3
-1
OptionItem.ts
assets/MRBR05/scene/OptionItem.ts
+1
-1
defaultData.ts
assets/MRBR05/script/defaultData.ts
+8
-6
creator.d.ts
creator.d.ts
+2
-0
No files found.
assets/MRBR05/mouse/small/mrbr05_layout_mouse.ts
View file @
71353c0b
...
@@ -52,8 +52,11 @@ export default class NewClass extends cc.Component {
...
@@ -52,8 +52,11 @@ export default class NewClass extends cc.Component {
this
.
cleanStar
();
this
.
cleanStar
();
this
.
bigStarArr
=
[];
this
.
bigStarArr
=
[];
let
size
=
cc
.
view
.
getCanvasSize
();
let
scale
=
(
size
.
width
/
size
.
height
)
/
(
1280
/
720
);
let
baseX
=
this
.
position
.
x
;
let
baseX
=
this
.
position
.
x
;
if
(
scale
>
1
)
baseX
=
baseX
*
(
Math
.
floor
(
scale
*
100
)
/
100
);
let
baseY
=
this
.
position
.
y
;
let
baseY
=
this
.
position
.
y
;
let
disW
=
80
;
// * this._mapScaleMin
let
disW
=
80
;
// * this._mapScaleMin
// let disH = 80 * this._mapScaleMin;
// let disH = 80 * this._mapScaleMin;
...
...
assets/MRBR05/scene/MRBR05.fire
View file @
71353c0b
This diff is collapsed.
Click to expand it.
assets/MRBR05/scene/MRBR05.ts
View file @
71353c0b
...
@@ -57,11 +57,13 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -57,11 +57,13 @@ export default class SceneComponent extends MyCocosSceneComponent {
pg
.
event
.
on
(
"
mrbr05_click_right
"
,
()
=>
{
pg
.
event
.
on
(
"
mrbr05_click_right
"
,
()
=>
{
this
.
roundIdx
++
;
this
.
roundIdx
++
;
pg
.
event
.
emit
(
"
mouse_add
"
,
()
=>
{
});
pg
.
event
.
emit
(
"
mouse_add
"
,
()
=>
{
});
this
.
showGame
();
})
})
pg
.
event
.
on
(
"
mouse_start_play_success
"
,
()
=>
{
pg
.
event
.
on
(
"
mouse_start_play_success
"
,
()
=>
{
this
.
playLaba
();
this
.
playLaba
();
})
})
pg
.
event
.
on
(
"
mouse_num_game_end
"
,
()
=>
{
this
.
showGame
();
})
this
.
btn_laba
=
cc
.
find
(
"
btn_laba
"
,
this
.
node
);
this
.
btn_laba
=
cc
.
find
(
"
btn_laba
"
,
this
.
node
);
this
.
btn_laba
.
on
(
cc
.
Node
.
EventType
.
TOUCH_END
,
this
.
playLaba
,
this
);
this
.
btn_laba
.
on
(
cc
.
Node
.
EventType
.
TOUCH_END
,
this
.
playLaba
,
this
);
...
...
assets/MRBR05/scene/OptionItem.ts
View file @
71353c0b
...
@@ -63,7 +63,7 @@ export default class OptionItem extends cc.Component {
...
@@ -63,7 +63,7 @@ export default class OptionItem extends cc.Component {
g_imgText
.
active
=
true
;
g_imgText
.
active
=
true
;
let
head
=
g_imgText
.
getChildByName
(
"
head
"
);
let
head
=
g_imgText
.
getChildByName
(
"
head
"
);
let
Label
=
g_imgText
.
getChildByName
(
"
Label
"
);
let
Label
=
g_imgText
.
getChildByName
(
"
Label
"
);
pg
.
view
.
setNetImg
(
head
,
data
.
pic_url
,
{
w
:
2
45
,
h
:
160
});
pg
.
view
.
setNetImg
(
head
,
data
.
pic_url
,
{
w
:
2
05
,
h
:
135
});
Label
.
getComponent
(
cc
.
Label
).
string
=
data
.
text
;
Label
.
getComponent
(
cc
.
Label
).
string
=
data
.
text
;
}
}
private
itemError
(
item
)
{
private
itemError
(
item
)
{
...
...
assets/MRBR05/script/defaultData.ts
View file @
71353c0b
...
@@ -12,7 +12,7 @@ export const defaultData = {
...
@@ -12,7 +12,7 @@ export const defaultData = {
"
questionType
"
:
"
text
"
,
"
questionType
"
:
"
text
"
,
"
answerType
"
:
"
text
"
,
"
answerType
"
:
"
text
"
,
"
answerArr
"
:
[{
"
answerArr
"
:
[{
"
text
"
:
"
54333
"
,
"
text
"
:
"
gfdd
"
,
"
pic_url
"
:
""
,
"
pic_url
"
:
""
,
"
answerRight
"
:
"
1
"
"
answerRight
"
:
"
1
"
},
{
},
{
...
@@ -50,15 +50,15 @@ export const defaultData = {
...
@@ -50,15 +50,15 @@ export const defaultData = {
"
questionType
"
:
"
text
"
,
"
questionType
"
:
"
text
"
,
"
answerType
"
:
"
picText
"
,
"
answerType
"
:
"
picText
"
,
"
answerArr
"
:
[{
"
answerArr
"
:
[{
"
text
"
:
"
123
"
,
"
text
"
:
"
how
"
,
"
pic_url
"
:
"
http://staging-teach.cdn.ireadabc.com/7780195055731416480edbc97072fe5b.png
"
,
"
pic_url
"
:
"
http://staging-teach.cdn.ireadabc.com/7780195055731416480edbc97072fe5b.png
"
,
"
answerRight
"
:
"
0
"
"
answerRight
"
:
"
0
"
},
{
},
{
"
text
"
:
"
5435
"
,
"
text
"
:
"
hell
"
,
"
pic_url
"
:
"
http://staging-teach.cdn.ireadabc.com/4286c34a3b69bf7baea3847ec04b05b7.png
"
,
"
pic_url
"
:
"
http://staging-teach.cdn.ireadabc.com/4286c34a3b69bf7baea3847ec04b05b7.png
"
,
"
answerRight
"
:
"
0
"
"
answerRight
"
:
"
0
"
},
{
},
{
"
text
"
:
"
688
"
,
"
text
"
:
"
bbbb
"
,
"
pic_url
"
:
"
http://staging-teach.cdn.ireadabc.com/2eb2c2a688d66ac6aa9cb6aaa81a0859.png
"
,
"
pic_url
"
:
"
http://staging-teach.cdn.ireadabc.com/2eb2c2a688d66ac6aa9cb6aaa81a0859.png
"
,
"
answerRight
"
:
"
1
"
"
answerRight
"
:
"
1
"
},
{
},
{
...
@@ -66,7 +66,8 @@ export const defaultData = {
...
@@ -66,7 +66,8 @@ export const defaultData = {
"
pic_url
"
:
"
http://staging-teach.cdn.ireadabc.com/4dc62cd150d6cbb06febbb22bc5f6f37.png
"
,
"
pic_url
"
:
"
http://staging-teach.cdn.ireadabc.com/4dc62cd150d6cbb06febbb22bc5f6f37.png
"
,
"
answerRight
"
:
"
0
"
"
answerRight
"
:
"
0
"
}
}
]
],
"
audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/fb08783926362bf64232e2ec6966011d.mp3
"
}
}
]
]
},
{
},
{
...
@@ -90,7 +91,8 @@ export const defaultData = {
...
@@ -90,7 +91,8 @@ export const defaultData = {
"
pic_url
"
:
""
,
"
pic_url
"
:
""
,
"
answerRight
"
:
"
1
"
"
answerRight
"
:
"
1
"
}
}
]
],
"
audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/fb08783926362bf64232e2ec6966011d.mp3
"
}
}
]
]
}
}
...
...
creator.d.ts
View file @
71353c0b
...
@@ -4589,6 +4589,8 @@ declare namespace cc {
...
@@ -4589,6 +4589,8 @@ declare namespace cc {
!#zh 获取节点正前方(z 轴)面对的方向,返回值为世界坐标系下的归一化向量 */
!#zh 获取节点正前方(z 轴)面对的方向,返回值为世界坐标系下的归一化向量 */
forward
:
Vec3
;
forward
:
Vec3
;
audioClip
:
any
;
audioClip
:
any
;
starBig
:
any
;
star
:
Node
;
/**
/**
@param name name
@param name name
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