function menu.update(dt) input.update(dt) if state.needs_layout then renderer.layout(state) end renderer.draw(state) animation.update(dt) end