tinyworld / worlds /__init__.py
trainig's picture
Deploy TinyWorld + Crisis Mode (Among-Us co-op survival)
f8657ee verified
Raw
History Blame Contribute Delete
402 Bytes
from worlds.maple_street import WORLD as MAPLE_STREET
from worlds.riverside_campus import WORLD as RIVERSIDE_CAMPUS
WORLDS = {
"maple_street": MAPLE_STREET,
"riverside_campus": RIVERSIDE_CAMPUS,
}
def get_world(world_id):
return WORLDS.get(world_id)
def list_worlds():
return [
{"id": wid, "name": w["name"], "theme": w["theme"]}
for wid, w in WORLDS.items()
]