By making JSON files of game data, we can more easily recreate games within different game engines. And we can more easily run computations on game situations. I got bored encoding this, but here was the start of my encoding of Level 1 from the Legend of Zelda.
{
rooms:
[
{
id: "origin",
left: "room1",
up: "room2",
up-type: "locked",
right: "room3"
},
{
id: "room1",
enemies: "3 keese",
item: "key",
right: "origin"
},
{
id: "room2",
enemies: "3 skeletons",
up: "room4",
down: "origin",
down-type: "locked"
},
{
id: "room3",
enemies: "5 skeletons",
item: "key",
left: "origin"
},
{
id: "room4",
item: "key",
enemies: "5 skeletons",
left: "room5",
up: "room6",
up-type: "bombable",
right: "room7"
},
{
id: "room5",
enemies: "6 keese",
right: "room4"
right-type: "kill",
up: "room8",
up-type: "locked"
},
{
id: "room6",
enemies: "5 smallZols",
down: "room4",
down-type: "bombable",
left: "room8",
up: "room9",
right: "room10",
item: "map"
},
...
]
}