If you create a local world, you don't need an internet connection. For example, in Minecraft you have to log in via Minecraft launcher regardless you want play offline or online.