portlandcodeschool / jsi-gamelib

JSI Game Library
1 stars 5 forks source link

Order shouldn't matter in game description #14

Open ErinCall opened 9 years ago

ErinCall commented 9 years ago

I moved around a few items in the game description, and it wouldn't generate a map any more.

game.json:

{
  "rooms": [
    {
      "name": "C",
      "north": null,
      "east": null,
      "south": null,
      "west": "B"
    },
    {
      "name": "A",
      "north": "D",
      "east": "B",
      "south": null,
      "west": null
    },
    {
      "name": "B",
      "north": "E",
      "east": null,
      "south": null,
      "west": "A",
      "entrance": "south"
    },
    {
      "name": "D",
      "north": "G",
      "east": null,
      "south": "A",
      "west": null
    },
    {
      "name": "E",
      "north": null,
      "east": "F",
      "south": "B",
      "west": null
    },
    {
      "name": "F",
      "north": null,
      "east": null,
      "south": null,
      "west": "E"
    },
    {
      "name": "G",
      "north": "H",
      "east": null,
      "south": "D",
      "west": null
    },
    {
      "name": "H",
      "north": null,
      "east": "I",
      "south": "G",
      "west": null
    },
    {
      "name": "I",
      "north": null,
      "east": "J",
      "south": null,
      "west": "H"
    },
    {
      "name": "J",
      "north": null,
      "east": "K",
      "south": null,
      "west": "I"
    },
    {
      "name": "K",
      "north": null,
      "east": null,
      "south": null,
      "west": "J",
      "treasure": true
    }
  ]
}