Rate Scale Improved
This commit is contained in:
1 parent
baa9fd59c9
commit
9eb6803e70
7 files changed
+99
-12
No files matched your search
@@ -97,6 +97,7 @@ function newUiObject () {
|
||||
let eventSubscriptionIdHeartbeat
|
||||
let eventSubscriptionIdOnStopped
|
||||
let lastHeartBeat
|
||||
let newUiObjectCounter = 25
|
||||
|
||||
return thisObject
|
||||
|
||||
@@ -280,6 +281,14 @@ function newUiObject () {
|
||||
referenceDetachingPhysics()
|
||||
referenceAttachingPhysics()
|
||||
childrenRunningPhysics()
|
||||
newObjectPhysics()
|
||||
}
|
||||
|
||||
function newObjectPhysics () {
|
||||
newUiObjectCounter--
|
||||
if (newUiObjectCounter < 0) {
|
||||
newUiObjectCounter = 0
|
||||
}
|
||||
}
|
||||
|
||||
function heartBeatPhysics () {
|
||||
@@ -940,6 +949,9 @@ function newUiObject () {
|
||||
if (thisObject.payload.floatingObject.isFrozen === true) {
|
||||
LINE_STYLE = UI_COLOR.TURQUOISE
|
||||
}
|
||||
if (newUiObjectCounter > 0) {
|
||||
LINE_STYLE = UI_COLOR.GREY
|
||||
}
|
||||
|
||||
browserCanvasContext.beginPath()
|
||||
browserCanvasContext.moveTo(position.x, position.y)
|
||||
|
||||
Reference in new issue
Block a user