From 7b252e5861f65a5d45f9ee81e7c38d822f44999a Mon Sep 17 00:00:00 2001 From: Nulo Date: Tue, 6 Jul 2021 20:19:47 +0000 Subject: [PATCH] Mostrar logo al perder/ganar --- src/jugando.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/jugando.ts b/src/jugando.ts index e6a483b..1261b51 100644 --- a/src/jugando.ts +++ b/src/jugando.ts @@ -109,8 +109,8 @@ function shareButton(juego: Juego): { const height = sprite.getHeight(juego); return { box: { - x: juego.canvas.width / 2 - width / 2, - y: juego.canvas.height * 0.9 - height, + x: juego.canvas.width - width - 5, + y: juego.canvas.height * 0.85 - height, width, height, }, @@ -477,6 +477,11 @@ export function draw(juego: Juego, timestamp: number) { } if (juego.state.has) { + juego.sprites.logoFPGFDTBlanco.draw( + juego, + 0, + juego.canvas.height - juego.sprites.logoFPGFDTBlanco.getHeight(juego) - 10 + ); if (juego.state.has === "lost") { const width = juego.sprites.placaPerdiste.getWidth(juego); juego.sprites.placaPerdiste.draw(