Building Worlds from Scratch: The Mechanics of Generative AI