Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
PS_001
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
PS_001
Commits
e9f4cef6
Commit
e9f4cef6
authored
Jan 14, 2022
by
huoshizhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:
parent
85d3ee62
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
803 additions
and
14 deletions
+803
-14
PS_001_Ctrl.ts
assets/PS_001/ani/script/PS_001_Ctrl.ts
+1
-0
PS_001_scene1.ts
assets/PS_001/ani/script/PS_001_scene1.ts
+2
-0
PS_001.fire
assets/PS_001/scene/PS_001.fire
+3
-3
PS_001.fire.meta
assets/PS_001/scene/PS_001.fire.meta
+1
-1
PS_001.ts
assets/PS_001/scene/PS_001.ts
+5
-6
PS_001.ts.meta
assets/PS_001/scene/PS_001.ts.meta
+1
-1
app.js
bin/app.js
+1
-0
buildCocos.js
bin/buildCocos.js
+1
-1
package-lock.json
package-lock.json
+787
-1
builder.json
settings/builder.json
+1
-1
No files found.
assets/PS_001/ani/script/PS_001_Ctrl.ts
View file @
e9f4cef6
...
...
@@ -53,6 +53,7 @@ export default class PS_001_Ctrl extends cc.Component {
this
.
ShowNode
=
cc
.
instantiate
(
this
.
allScene
[
arg0
])
this
.
node
.
addChild
(
this
.
ShowNode
)
this
.
ShowNode
.
getComponent
(
'
PS_001_scene
'
+
(
arg0
+
1
)).
init
(
this
.
carema
,
this
)
return
;
}
this
.
ShowNode
=
cc
.
instantiate
(
this
.
allScene
[
arg0
])
this
.
node
.
addChild
(
this
.
ShowNode
)
...
...
assets/PS_001/ani/script/PS_001_scene1.ts
View file @
e9f4cef6
...
...
@@ -33,6 +33,8 @@ export default class PS_001_scene1 extends cc.Component {
this
.
initUI
();
if
(
PS_001_Ctrl
.
getIns
().
time
==
0
)
{
this
.
beforeStartFirstTime
();
}
else
{
...
...
assets/PS_001/scene/PS_001.fire
View file @
e9f4cef6
...
...
@@ -58,7 +58,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"autoReleaseAssets": true,
"_id": "
0737ce42-24f0-45c6-8e1a-8bdab4f74ba3
"
"_id": "
ac67118e-8afd-4a49-b7d4-2c69cbe8eabb
"
},
{
"__type__": "cc.Node",
...
...
@@ -275,13 +275,13 @@
"_id": "29zXboiXFBKoIV4PQ2liTe"
},
{
"__type__": "
408a6f4ZfpM8Yzyg+IOGg/V
",
"__type__": "
065068C42ZOHIrImTzlEWAt
",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_id": "
eaTVUpqahPfZeO9+sUI7RP
"
"_id": "
fbff0152ad7d4e41bd3d30
"
}
]
\ No newline at end of file
assets/PS_001/scene/PS_001.fire.meta
View file @
e9f4cef6
{
"ver": "1.2.9",
"uuid": "
0737ce42-24f0-45c6-8e1a-8bdab4f74ba3
",
"uuid": "
ac67118e-8afd-4a49-b7d4-2c69cbe8eabb
",
"asyncLoadAssets": false,
"autoReleaseAssets": true,
"subMetas": {}
...
...
assets/PS_001/scene/PS_001.ts
View file @
e9f4cef6
...
...
@@ -44,14 +44,13 @@ export default class SceneComponent extends MyCocosSceneComponent {
];
const
step
=
this
.
data
.
step
;
cc
.
director
.
loadScene
(
`PS_001_scene1`
,
()
=>
{
if
(
step
==
0
)
{
return
;
}
console
.
log
(
'
汪汪汪:
'
+
step
);
if
(
step
!=
0
)
{
PS_001_Ctrl
.
getIns
().
time
=
1
;
PS_001_Ctrl
.
getIns
().
goscene
(
conf
[
step
].
id
);
});
return
;
}
else
{
PS_001_Ctrl
.
getIns
().
toNext
(
0
);
}
}
playLocalAudio
(
audioName
)
{
...
...
assets/PS_001/scene/PS_001.ts.meta
View file @
e9f4cef6
{
"ver": "1.0.8",
"uuid": "
408a67f8-65fa-4cf1-8cf2-83e20e1a0fd5
",
"uuid": "
06506f02-e366-4e1c-8ac8-993ce511602d
",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
...
...
bin/app.js
View file @
e9f4cef6
...
...
@@ -22,6 +22,7 @@ app.use('/dist', express.static('dist'));
app
.
use
(
'
/form
'
,
express
.
static
(
'
form
'
));
app
.
get
(
'
/
'
,
function
(
req
,
res
)
{
res
.
header
(
"
Access-Control-Allow-Origin
"
,
"
*
"
);
res
.
send
(
'
Hello World
'
);
})
...
...
bin/buildCocos.js
View file @
e9f4cef6
...
...
@@ -52,7 +52,7 @@ function execCmd(cmd, params, path) {
}
let
creatorBasePath
=
'
C
ocosCreator
'
;
let
creatorBasePath
=
'
C
:
\\
CocosDashboard_1.0.6
\\
resources
\\
.editors
\\
Creator
\\
2.4.5
\\
CocosCreator.exe
'
;
if
(
process
.
platform
!==
'
win32
'
)
{
creatorBasePath
=
"
/Applications/CocosCreator/Creator/2.4.5/CocosCreator.app/Contents/MacOS/CocosCreator
"
;
}
...
...
package-lock.json
View file @
e9f4cef6
This diff is collapsed.
Click to expand it.
settings/builder.json
View file @
e9f4cef6
{
"title"
:
"play"
,
"packageName"
:
"org.cocos2d.demo"
,
"startScene"
:
"
0737ce42-24f0-45c6-8e1a-8bdab4f74ba3
"
,
"startScene"
:
"
ac67118e-8afd-4a49-b7d4-2c69cbe8eabb
"
,
"excludeScenes"
:
[],
"includeSDKBox"
:
false
,
"orientation"
:
{
...
...
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