import { Tooltip } from "./button" ; import { Gui } from "./gui" ; import { Input } from "./input" ; let SplashScreen ; export function InitGameOver ( splashScreen ) { SplashScreen = splashScreen ; } export function SetGameOverButton ( text ? ) { text = text || "This is where your journey comes to an end." ; Gui . ClearButtons ( ) ; Input . buttons [ 0 ] . Setup ( "Game Over" , GameOver , true , undefined , text ) ; } const GameOver = ( ) => { Gui . Callstack = [ ] ; SplashScreen ( ) ; } ;