Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
db-game-template
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
崔立强
db-game-template
Commits
b3c6d155
Commit
b3c6d155
authored
Dec 18, 2019
by
XieChuanJin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复后台监听bug
parent
8cbab851
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
10 deletions
+13
-10
PhycicsSystem.ts
egret/src/Game/PhycicsSystem.ts
+2
-2
SpTimer.ts
egret/src/Game/SpTimer.ts
+2
-2
GUtils.ts
egret/src/Global/GUtils.ts
+3
-3
Custom.ts
egret/src/components/Custom.ts
+3
-0
MTween.ts
egret/src/components/MTween.ts
+2
-2
visit.json
mock/json/visit.json
+1
-1
No files found.
egret/src/Game/PhycicsSystem.ts
View file @
b3c6d155
...
...
@@ -18,8 +18,8 @@ export default class PhycicsSystem {
public
static
init
()
{
const
ins
=
PhycicsSystem
.
instance
;
//
egret.MainContext.instance.stage.addEventListener(egret.Event.ENTER_FRAME, ins.onUpdate, ins);
egret
.
startTick
(
ins
.
onUpdate
,
ins
);
egret
.
MainContext
.
instance
.
stage
.
addEventListener
(
egret
.
Event
.
ENTER_FRAME
,
ins
.
onUpdate
,
ins
);
//
egret.startTick(ins.onUpdate, ins);
}
private
_enabled
:
boolean
=
false
;
...
...
egret/src/Game/SpTimer.ts
View file @
b3c6d155
...
...
@@ -11,8 +11,8 @@ export default class SpTimer {
}
public
static
init
()
{
//
egret.MainContext.instance.stage.addEventListener(egret.Event.ENTER_FRAME, SpTimer.onUpdate, SpTimer);
egret
.
startTick
(
SpTimer
.
onUpdate
,
SpTimer
);
egret
.
MainContext
.
instance
.
stage
.
addEventListener
(
egret
.
Event
.
ENTER_FRAME
,
SpTimer
.
onUpdate
,
SpTimer
);
//
egret.startTick(SpTimer.onUpdate, SpTimer);
}
private
static
onUpdate
()
{
...
...
egret/src/Global/GUtils.ts
View file @
b3c6d155
...
...
@@ -31,8 +31,8 @@ export function clearShareImg() {
export
function
getBallScore
(
bulletScore
:
number
,
powerScore
:
number
,
colorIndex
:
number
):
any
{
let
getScoreFromRange
=
([
a
,
b
])
=>
{
a
=
Math
.
ceil
(
a
*
MConfigs
.
difficultyFactor
);
b
=
Math
.
ceil
(
b
*
MConfigs
.
difficultyFactor
);
a
=
Math
.
ceil
(
a
*
0.15
);
b
=
Math
.
ceil
(
b
*
0.15
);
let
n
=
Math
.
abs
(
b
-
a
)
+
1
;
n
=
Math
.
floor
(
n
/
6
);
const
m
=
[];
...
...
@@ -140,7 +140,7 @@ export function getAppLocation() {
export
function
login
()
{
}
export
function
getCookie
(
cookieName
:
string
)
{
...
...
egret/src/components/Custom.ts
View file @
b3c6d155
...
...
@@ -38,4 +38,7 @@ export function customClassPrototype() {
}
egret
.
MainContext
.
instance
.
stage
.
addEventListener
(
egret
.
Event
.
ENTER_FRAME
,
updateDeltaTime
,
null
);
egret
.
lifecycle
.
onResume
=
()
=>
{
curTime
=
egret
.
getTimer
();
}
}
\ No newline at end of file
egret/src/components/MTween.ts
View file @
b3c6d155
...
...
@@ -154,8 +154,8 @@ export default class MTweenMgr {
private
isTraversing
=
false
;
public
init
()
{
egret
.
startTick
(
this
.
update
,
this
);
//
egret.MainContext.instance.stage.addEventListener(egret.Event.ENTER_FRAME, this.update, this);
//
egret.startTick(this.update, this);
egret
.
MainContext
.
instance
.
stage
.
addEventListener
(
egret
.
Event
.
ENTER_FRAME
,
this
.
update
,
this
);
}
public
removeTweens
(
target
:
object
)
{
...
...
mock/json/visit.json
View file @
b3c6d155
...
...
@@ -3,7 +3,7 @@
"message"
:
""
,
"code"
:
""
,
"data"
:
{
"leftTimes"
:
0
,
"leftTimes"
:
1
0
,
"leftInviteCnt"
:
10
,
"minEnableCaptchaScore"
:
5000
,
"allPeriodEnd"
:
false
,
...
...
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