Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-libs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
劳工
zeroing-libs
Commits
2533efe0
Commit
2533efe0
authored
Aug 11, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
5a8face8
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
238 additions
and
653 deletions
+238
-653
p2demo.json
dist/customs/p2demo.json
+1
-1
app.js
src/custom/p2demo/debug/app.js
+3
-4
main.js
src/custom/p2demo/debug/main.js
+127
-296
main.js.map
src/custom/p2demo/debug/main.js.map
+1
-1
GameView.ts
src/custom/p2demo/src/game/GameView.ts
+106
-350
GameWrapper.ts
src/custom/p2demo/src/game/GameWrapper.ts
+0
-1
No files found.
dist/customs/p2demo.json
View file @
2533efe0
This diff is collapsed.
Click to expand it.
src/custom/p2demo/debug/app.js
View file @
2533efe0
...
...
@@ -2,7 +2,7 @@
* Created by renjianfeng on 2020-03-13.
*/
const
customId
=
'p
ictures
'
;
const
customId
=
'p
2demo
'
;
(
async
function
()
{
let
customModule
=
await
fetch
(
`../meta.json`
);
...
...
@@ -55,9 +55,8 @@ function launchWithCustomModule(customModule) {
});
const
d
=
engine
.
gameStage
.
sceneContainer
.
getChildAt
(
0
);
engine
.
gameStage
.
sceneContainer
.
getChildAt
(
0
).
x
=
(
d
.
stage
.
width
-
props
.
W
)
/
2
;
engine
.
gameStage
.
sceneContainer
.
getChildAt
(
0
).
y
=
(
d
.
stage
.
height
-
props
.
H
)
/
2
;
},
1000
);
},
100
);
// setTimeout(() => {
// engine.globalEvent.dispatchEvent('pictures-start', {
...
...
src/custom/p2demo/debug/main.js
View file @
2533efe0
This diff is collapsed.
Click to expand it.
src/custom/p2demo/debug/main.js.map
View file @
2533efe0
This diff is collapsed.
Click to expand it.
src/custom/p2demo/src/game/GameView.ts
View file @
2533efe0
This diff is collapsed.
Click to expand it.
src/custom/p2demo/src/game/GameWrapper.ts
View file @
2533efe0
...
...
@@ -35,6 +35,5 @@ export class GameWrapper extends engine.Container {
}
stop
(
event
:
engine
.
Event
)
{
this
.
_gameView
.
stop
();
}
}
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