show message while cutting puzzle

This commit is contained in:
Zutatensuppe 2021-07-08 00:25:12 +02:00
parent 2b0dc392da
commit 7759cdc806
5 changed files with 20 additions and 2 deletions

View file

@ -46,6 +46,7 @@ let PIECE_VIEW_FIXED = true
let PIECE_VIEW_LOOSE = true
interface Hud {
setPuzzleCut: () => void
setActivePlayers: (v: Array<any>) => void
setIdlePlayers: (v: Array<any>) => void
setFinished: (v: boolean) => void
@ -415,6 +416,7 @@ export async function main(
const ctx = canvas.getContext('2d') as CanvasRenderingContext2D
canvas.classList.add('loaded')
HUD.setPuzzleCut()
// initialize some view data
// this global data will change according to input events