refactor: more world time ticks
This commit is contained in:
parent
c568a933a2
commit
94d2f32451
|
@ -6,7 +6,7 @@ export class WorldTime {
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
this._hour = 0;
|
this._hour = 0;
|
||||||
this.ticker = new Ticker(1);
|
this.ticker = new Ticker(0.25);
|
||||||
this._state = 0;
|
this._state = 0;
|
||||||
this.ticker.on('tick', () => {
|
this.ticker.on('tick', () => {
|
||||||
this._state = (this._hour * MAGIC_TO_FIT_HOUR_INTO_USHORT) >> 0;
|
this._state = (this._hour * MAGIC_TO_FIT_HOUR_INTO_USHORT) >> 0;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user