salva-la-costanera/src/win.ts

18 lines
386 B
TypeScript
Raw Normal View History

2021-06-30 23:16:45 +00:00
import { Juego } from "./main";
import { drawText } from "./utils";
2021-06-30 16:34:26 +00:00
export type State = {
2021-06-30 23:16:45 +00:00
current: "win";
};
2021-06-30 16:34:26 +00:00
2021-06-30 23:16:45 +00:00
export function update(juego: Juego<State>, dt: number) {}
2021-06-30 16:34:26 +00:00
export function draw(juego: Juego<State>, timestamp: number) {
2021-06-30 23:16:45 +00:00
drawText(
juego,
"¡Salvaste la costanera!",
{ x: juego.canvas.width / 2, y: 100 },
{ bold: true, size: 3, align: "center" }
);
2021-06-30 16:34:26 +00:00
}