2021-06-30 16:34:26 +00:00
|
|
|
import { Juego } from './main'
|
2021-06-30 21:21:21 +00:00
|
|
|
import { drawText } from './utils'
|
2021-06-30 16:34:26 +00:00
|
|
|
|
|
|
|
export type State = {
|
|
|
|
current: "win"
|
|
|
|
}
|
|
|
|
|
|
|
|
export function update(juego: Juego<State>, dt: number) {
|
|
|
|
}
|
|
|
|
|
|
|
|
export function draw(juego: Juego<State>, timestamp: number) {
|
2021-06-30 21:21:21 +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
|
|
|
}
|