Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
debug_shell
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
debug_shell
Commits
1a3689a4
Commit
1a3689a4
authored
Dec 06, 2021
by
liujiaxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: backdoor
parent
a064c581
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1090 additions
and
939 deletions
+1090
-939
debug_shell.fire
play/assets/debug_shell/scene/debug_shell.fire
+1040
-931
oxford_front.ts
play/assets/oxford_front/scene/oxford_front.ts
+1
-1
BackDoor.ts
play/assets/oxford_front/script/BackDoor.ts
+13
-7
hat.png
play/assets/oxford_front/textures/space/hat.png
+0
-0
hat.png.meta
play/assets/oxford_front/textures/space/hat.png.meta
+36
-0
No files found.
play/assets/debug_shell/scene/debug_shell.fire
View file @
1a3689a4
This diff is collapsed.
Click to expand it.
play/assets/oxford_front/scene/oxford_front.ts
View file @
1a3689a4
...
...
@@ -456,7 +456,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
let
isDebug
=
false
;
if
(
this
.
BackDoorNode
)
{
const
bd
=
this
.
BackDoorNode
.
getComponent
(
'
BackDoor
'
);
if
(
bd
&&
bd
.
isDebug
)
{
if
(
bd
&&
bd
.
isDebug
()
)
{
isDebug
=
true
;
}
}
...
...
play/assets/oxford_front/script/BackDoor.ts
View file @
1a3689a4
...
...
@@ -20,15 +20,23 @@ export default class NewClass extends cc.Component {
touchCounter
=
0
;
countTimer
=
null
;
isDebug
=
false
;
hat
=
null
;
// isDebug = false;
// touchTimeline = [];
// LIFE-CYCLE CALLBACKS:
// onLoad () {}
isDebug
()
{
return
this
.
hat
&&
this
.
hat
.
active
;
}
start
()
{
console
.
log
(
111
)
this
.
hat
=
this
.
node
.
getChildByName
(
'
hat
'
);
if
(
!
this
.
hat
)
{
return
;
}
this
.
node
.
on
(
cc
.
Node
.
EventType
.
TOUCH_START
,
()
=>
{
// console.log(Date.now());
// this.touchTimeline.push(Date.now());
...
...
@@ -43,12 +51,10 @@ export default class NewClass extends cc.Component {
if
(
this
.
touchCounter
==
this
.
need
)
{
clearTimeout
(
this
.
countTimer
);
this
.
countTimer
=
null
;
if
(
this
.
isDebug
)
{
this
.
node
.
color
=
new
cc
.
Color
(
255
,
255
,
255
,
255
);
this
.
isDebug
=
false
;
if
(
this
.
hat
.
active
)
{
this
.
hat
.
active
=
false
}
else
{
this
.
node
.
color
=
new
cc
.
Color
(
3
,
246
,
18
,
255
);
this
.
isDebug
=
true
;
this
.
hat
.
active
=
true
}
}
...
...
play/assets/oxford_front/textures/space/hat.png
0 → 100644
View file @
1a3689a4
2.53 KB
play/assets/oxford_front/textures/space/hat.png.meta
0 → 100644
View file @
1a3689a4
{
"ver": "2.3.5",
"uuid": "6f2b5147-e49c-4458-8010-acb18043b6ba",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 94,
"height": 59,
"platformSettings": {},
"subMetas": {
"hat": {
"ver": "1.0.4",
"uuid": "8695e6d3-64a6-457c-962c-252616530caf",
"rawTextureUuid": "6f2b5147-e49c-4458-8010-acb18043b6ba",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 94,
"height": 59,
"rawWidth": 94,
"rawHeight": 59,
"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