Mostrar texto cuando se puede recolectar firmas

This commit is contained in:
Nulo 2021-07-02 18:20:19 +00:00
parent d7a2b88146
commit 3e26a513fa
1 changed files with 9 additions and 0 deletions

View File

@ -400,4 +400,13 @@ export function draw(juego: Juego<State>, timestamp: number) {
(juego.canvas.width - firmasBox.width - 20) * (juego.state.time / TIME),
30
);
if (detectCitizen(juego)) {
drawText(
juego,
`¡Apreta para recolectar firmas!`,
{ x: juego.canvas.width / 2, y: juego.canvas.height * 0.7 },
{ align: "center", maxWidth: juego.canvas.width }
);
}
}