Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
DuibaGameTemplate
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
钱根
DuibaGameTemplate
Commits
e5e3e39f
Commit
e5e3e39f
authored
Jun 07, 2022
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
@babel/core
parent
4a852e6a
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
644 deletions
+15
-644
Game.ts
src/Game.ts
+2
-2
ResJson.ts
src/ResJson.ts
+13
-642
No files found.
src/Game.ts
View file @
e5e3e39f
...
@@ -55,7 +55,7 @@ export class Game {
...
@@ -55,7 +55,7 @@ export class Game {
divHeight
=
divHeight
||
sysInfo
?.
windowHeight
||
document
.
body
.
clientHeight
;
divHeight
=
divHeight
||
sysInfo
?.
windowHeight
||
document
.
body
.
clientHeight
;
resolution
=
resolution
||
sysInfo
?.
pixelRatio
||
window
.
devicePixelRatio
||
1
;
resolution
=
resolution
||
sysInfo
?.
pixelRatio
||
window
.
devicePixelRatio
||
1
;
//建舞台
//
建舞台
const
stage
=
this
.
stage
=
new
Stage
(
const
stage
=
this
.
stage
=
new
Stage
(
canvas
,
canvas
,
desWidth
,
// 设计宽度,按设计搞给的就行
desWidth
,
// 设计宽度,按设计搞给的就行
...
@@ -70,7 +70,7 @@ export class Game {
...
@@ -70,7 +70,7 @@ export class Game {
this
.
canvas
=
canvas
;
// 赋值下,为了下面的destroy的cancelAnimationFrame
this
.
canvas
=
canvas
;
// 赋值下,为了下面的destroy的cancelAnimationFrame
//stage初始化
//
stage初始化
stage
.
addEventListener
(
Event
.
INIT_STAGE
,
this
.
onAddToStage
,
this
);
stage
.
addEventListener
(
Event
.
INIT_STAGE
,
this
.
onAddToStage
,
this
);
//循环
//循环
...
...
src/ResJson.ts
View file @
e5e3e39f
This diff is collapsed.
Click to expand it.
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