Implement package reveal and active handling
This commit is contained in:
parent
3b7beecf8c
commit
2297bbb562
4 changed files with 64 additions and 15 deletions
|
|
@ -1,6 +1,8 @@
|
|||
import { BehaviorSubject } from 'rxjs';
|
||||
import { BehaviorSubject, Subject } from 'rxjs';
|
||||
import { mp5 } from '../main';
|
||||
|
||||
export const playerHeadPosition$ = new Subject<{ x: number; y: number }>();
|
||||
|
||||
export const revealedArea$ = new BehaviorSubject<{ x: number; y: number; w: number }>({
|
||||
x: 0,
|
||||
y: 0,
|
||||
|
|
|
|||
Reference in a new issue