Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MRBR02
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
MRBR02
Commits
aa7ed4e7
Commit
aa7ed4e7
authored
Apr 29, 2022
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改老鼠及事件
parent
11bc4ced
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
11 deletions
+17
-11
Img_Dark(1)_ske.json
assets/MRBR02/img/common/老鼠在欢呼撒糖/Img_Dark(1)_ske.json
+0
-0
Img_Dark(1)_tex.json
assets/MRBR02/img/common/老鼠在欢呼撒糖/Img_Dark(1)_tex.json
+2
-2
Img_Dark(1)_tex.png
assets/MRBR02/img/common/老鼠在欢呼撒糖/Img_Dark(1)_tex.png
+0
-0
Img_Dark(1)_tex.png.meta
assets/MRBR02/img/common/老鼠在欢呼撒糖/Img_Dark(1)_tex.png.meta
+6
-6
MRBR02.ts
assets/MRBR02/scene/MRBR02.ts
+7
-2
pg.ts
assets/MRBR02/scene/pg.ts
+2
-1
No files found.
assets/MRBR02/img/common/老鼠在欢呼撒糖/Img_Dark(1)_ske.json
View file @
aa7ed4e7
This diff is collapsed.
Click to expand it.
assets/MRBR02/img/common/老鼠在欢呼撒糖/Img_Dark(1)_tex.json
View file @
aa7ed4e7
{
"width"
:
2048
,
"imagePath"
:
"Img_Dark(1)_tex.png"
,
"height"
:
1024
,
"name"
:
"Img_Dark(1)"
,
"SubTexture"
:[{
"width"
:
1668
,
"y"
:
1
,
"height"
:
938
,
"name"
:
"Img_Dark(1)/图层_45"
,
"x"
:
1
},{
"width"
:
111
,
"y"
:
941
,
"height"
:
55
,
"name"
:
"Img_Dark(1)/组_13"
,
"x"
:
1
},{
"width"
:
179
,
"y"
:
1
,
"height"
:
176
,
"name"
:
"Img_Dark(1)/色相_饱和度_1"
,
"x"
:
1671
},{
"width"
:
129
,
"y"
:
131
,
"height"
:
145
,
"name"
:
"Img_Dark(1)/组_14"
,
"x"
:
1852
},{
"width"
:
92
,
"y"
:
941
,
"height"
:
61
,
"name"
:
"Img_Dark(1)/色相_饱和度_3"
,
"x"
:
114
},{
"width"
:
164
,
"y"
:
1
,
"height"
:
128
,
"name"
:
"Img_Dark(1)/色相_饱和度_2"
,
"x"
:
1852
},{
"width"
:
143
,
"y"
:
278
,
"height"
:
97
,
"name"
:
"Img_Dark(1)/色相_饱和度_4"
,
"x"
:
1831
},{
"width"
:
74
,
"y"
:
941
,
"height"
:
67
,
"name"
:
"Img_Dark(1)/组_15"
,
"x"
:
208
},{
"width"
:
51
,
"y"
:
377
,
"height"
:
43
,
"name"
:
"Img_Dark(1)/组_15_拷贝_2"
,
"x"
:
1813
},{
"width"
:
57
,
"y"
:
131
,
"height"
:
53
,
"name"
:
"Img_Dark(1)/组_15_拷贝"
,
"x"
:
1983
},{
"width"
:
158
,
"y"
:
179
,
"height"
:
100
,
"name"
:
"Img_Dark(1)/图层_46"
,
"x"
:
1671
},{
"width"
:
91
,
"y"
:
340
,
"height"
:
70
,
"name"
:
"Img_Dark(1)/图层_56"
,
"x"
:
1671
},{
"width"
:
53
,
"y"
:
358
,
"height"
:
48
,
"name"
:
"Img_Dark(1)/图层_55"
,
"x"
:
1976
},{
"width"
:
48
,
"y"
:
278
,
"height"
:
78
,
"name"
:
"Img_Dark(1)/图层_54"
,
"x"
:
1976
},{
"width"
:
39
,
"y"
:
412
,
"height"
:
60
,
"name"
:
"Img_Dark(1)/图层_53"
,
"x"
:
1671
},{
"width"
:
47
,
"y"
:
340
,
"height"
:
84
,
"name"
:
"Img_Dark(1)/图层_52"
,
"x"
:
1764
},{
"width"
:
55
,
"y"
:
186
,
"height"
:
49
,
"name"
:
"Img_Dark(1)/图层_51"
,
"x"
:
1983
},{
"width"
:
72
,
"y"
:
941
,
"height"
:
63
,
"name"
:
"Img_Dark(1)/图层_50"
,
"x"
:
284
},{
"width"
:
95
,
"y"
:
941
,
"height"
:
39
,
"name"
:
"Img_Dark(1)/图层_49"
,
"x"
:
358
},{
"width"
:
156
,
"y"
:
281
,
"height"
:
57
,
"name"
:
"Img_Dark(1)/图层_48"
,
"x"
:
1671
},{
"width"
:
69
,
"y"
:
998
,
"height"
:
25
,
"name"
:
"Img_Dark(1)/图层_47"
,
"x"
:
1
}]}
\ No newline at end of file
{
"name"
:
"Img_Dark(1)"
,
"height"
:
1024
,
"SubTexture"
:[{
"name"
:
"Img_Dark(1)/图层_45"
,
"x"
:
1
,
"height"
:
225
,
"y"
:
1
,
"width"
:
400
},{
"name"
:
"Img_Dark(1)/组_13"
,
"x"
:
159
,
"height"
:
55
,
"y"
:
460
,
"width"
:
111
},{
"name"
:
"Img_Dark(1)/色相_饱和度_1"
,
"x"
:
1
,
"height"
:
176
,
"y"
:
228
,
"width"
:
179
},{
"name"
:
"Img_Dark(1)/组_14"
,
"x"
:
348
,
"height"
:
145
,
"y"
:
228
,
"width"
:
129
},{
"name"
:
"Img_Dark(1)/色相_饱和度_3"
,
"x"
:
403
,
"height"
:
61
,
"y"
:
73
,
"width"
:
92
},{
"name"
:
"Img_Dark(1)/色相_饱和度_2"
,
"x"
:
182
,
"height"
:
128
,
"y"
:
228
,
"width"
:
164
},{
"name"
:
"Img_Dark(1)/色相_饱和度_4"
,
"x"
:
342
,
"height"
:
97
,
"y"
:
375
,
"width"
:
143
},{
"name"
:
"Img_Dark(1)/组_15"
,
"x"
:
403
,
"height"
:
67
,
"y"
:
136
,
"width"
:
74
},{
"name"
:
"Img_Dark(1)/组_15_拷贝_2"
,
"x"
:
117
,
"height"
:
43
,
"y"
:
558
,
"width"
:
51
},{
"name"
:
"Img_Dark(1)/组_15_拷贝"
,
"x"
:
1
,
"height"
:
53
,
"y"
:
530
,
"width"
:
57
},{
"name"
:
"Img_Dark(1)/图层_46"
,
"x"
:
182
,
"height"
:
100
,
"y"
:
358
,
"width"
:
158
},{
"name"
:
"Img_Dark(1)/图层_56"
,
"x"
:
403
,
"height"
:
70
,
"y"
:
1
,
"width"
:
91
},{
"name"
:
"Img_Dark(1)/图层_55"
,
"x"
:
1
,
"height"
:
48
,
"y"
:
585
,
"width"
:
53
},{
"name"
:
"Img_Dark(1)/图层_54"
,
"x"
:
75
,
"height"
:
78
,
"y"
:
465
,
"width"
:
48
},{
"name"
:
"Img_Dark(1)/图层_53"
,
"x"
:
222
,
"height"
:
60
,
"y"
:
517
,
"width"
:
39
},{
"name"
:
"Img_Dark(1)/图层_52"
,
"x"
:
272
,
"height"
:
84
,
"y"
:
460
,
"width"
:
47
},{
"name"
:
"Img_Dark(1)/图层_51"
,
"x"
:
60
,
"height"
:
49
,
"y"
:
545
,
"width"
:
55
},{
"name"
:
"Img_Dark(1)/图层_50"
,
"x"
:
1
,
"height"
:
63
,
"y"
:
465
,
"width"
:
72
},{
"name"
:
"Img_Dark(1)/图层_49"
,
"x"
:
125
,
"height"
:
39
,
"y"
:
517
,
"width"
:
95
},{
"name"
:
"Img_Dark(1)/图层_48"
,
"x"
:
1
,
"height"
:
57
,
"y"
:
406
,
"width"
:
156
},{
"name"
:
"Img_Dark(1)/图层_47"
,
"x"
:
117
,
"height"
:
25
,
"y"
:
603
,
"width"
:
69
}],
"imagePath"
:
"Img_Dark(1)_tex.png"
,
"width"
:
512
}
\ No newline at end of file
assets/MRBR02/img/common/老鼠在欢呼撒糖/Img_Dark(1)_tex.png
View replaced file @
11bc4ced
View file @
aa7ed4e7
This diff is collapsed.
Click to expand it.
assets/MRBR02/img/common/老鼠在欢呼撒糖/Img_Dark(1)_tex.png.meta
View file @
aa7ed4e7
...
...
@@ -7,7 +7,7 @@
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width":
2048
,
"width":
512
,
"height": 1024,
"platformSettings": {},
"subMetas": {
...
...
@@ -18,13 +18,13 @@
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -
3.5
,
"offsetY":
0
,
"offsetX": -
8
,
"offsetY":
195
,
"trimX": 1,
"trimY": 1,
"width":
2039
,
"height":
102
2,
"rawWidth":
2048
,
"width":
494
,
"height":
63
2,
"rawWidth":
512
,
"rawHeight": 1024,
"borderTop": 0,
"borderBottom": 0,
...
...
assets/MRBR02/scene/MRBR02.ts
View file @
aa7ed4e7
...
...
@@ -199,13 +199,17 @@ export default class SceneComponent extends MyCocosSceneComponent {
let
target
:
cc
.
Node
=
e
.
target
;
let
data
=
target
.
data
;
let
location
=
e
.
getLocation
();
let
pos
=
location
.
sub
(
cc
.
v2
(
1280
/
2
,
720
/
2
))
let
size
=
cc
.
view
.
getCanvasSize
();
let
height
=
size
.
height
/
size
.
width
*
1280
;
let
pos
=
location
.
sub
(
cc
.
v2
(
1280
/
2
,
height
/
2
))
e
.
target
.
setPosition
(
pos
)
}
onItemTouchMove
(
e
)
{
let
target
:
cc
.
Node
=
e
.
target
;
let
location
=
e
.
getLocation
();
let
pos
=
location
.
sub
(
cc
.
v2
(
1280
/
2
,
720
/
2
))
let
size
=
cc
.
view
.
getCanvasSize
();
let
height
=
size
.
height
/
size
.
width
*
1280
;
let
pos
=
location
.
sub
(
cc
.
v2
(
1280
/
2
,
height
/
2
))
e
.
target
.
setPosition
(
pos
)
}
onItemTouchEnd
(
e
)
{
...
...
@@ -243,6 +247,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
},
3000
);
}
onItemTouchCancel
()
{
}
checked
:
boolean
;
updateCheckBtn
()
{
...
...
assets/MRBR02/scene/pg.ts
View file @
aa7ed4e7
...
...
@@ -14,6 +14,7 @@ class Emitter {
return
this
;
}
on
(
event
,
fn
)
{
this
.
off
(
event
);
if
(
!
this
.
_callbacks
[
event
])
this
.
_callbacks
[
event
]
=
[];
this
.
_callbacks
[
event
].
push
(
fn
);
};
...
...
@@ -25,7 +26,7 @@ class Emitter {
on
.
fn
=
fn
;
this
.
on
(
event
,
on
);
};
off
(
event
,
fn
)
{
off
(
event
,
fn
?:
any
)
{
// all
if
(
0
==
arguments
.
length
)
{
this
.
_callbacks
=
{};
...
...
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