Basic reveal mechanic

This commit is contained in:
Dennis Schoepf 2021-07-26 17:53:03 +02:00
parent 7e634917bf
commit 4639c22025
8 changed files with 71 additions and 8 deletions

7
src/area.ts Normal file
View file

@ -0,0 +1,7 @@
import { BehaviorSubject } from 'rxjs';
export const revealedArea$ = new BehaviorSubject<{ x: number; y: number; w: number }>({
x: 0,
y: 0,
w: 0,
});