File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -120,8 +120,7 @@ export class EndingUI extends GameObjects.Container {
120
120
update ( ) {
121
121
if (
122
122
this . _render &&
123
- this . _scene . game . getTime ( ) - this . _started >
124
- ( this . _loopsToRender * 192e3 ) / 7 / this . _scene . tweens . timeScale
123
+ this . _scene . game . getTime ( ) - this . _started > ( this . _loopsToRender * 192e3 ) / 7
125
124
) {
126
125
EventBus . emit ( 'render-stop' ) ;
127
126
this . _render = false ;
Original file line number Diff line number Diff line change @@ -587,7 +587,7 @@ export class Game extends Scene {
587
587
this . sound ,
588
588
( ) => this . _status === GameStatus . FINISHED || this . end ( ) ,
589
589
) ;
590
- this . timeScale = this . _data . preferences . timeScale ;
590
+ if ( ! this . _render ) this . timeScale = this . _data . preferences . timeScale ;
591
591
}
592
592
593
593
createBackground ( ) {
@@ -993,6 +993,10 @@ export class Game extends Scene {
993
993
return this . _render ;
994
994
}
995
995
996
+ public get mediaOptions ( ) {
997
+ return this . _data . mediaOptions ;
998
+ }
999
+
996
1000
public get objects ( ) {
997
1001
return this . _objects ;
998
1002
}
You can’t perform that action at this time.
0 commit comments