Implement package reveal and active handling

This commit is contained in:
Dennis Schoepf 2021-07-26 19:15:58 +02:00
parent 3b7beecf8c
commit 2297bbb562
4 changed files with 64 additions and 15 deletions

View file

@ -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,