diff --git a/src/game/maps/town.ts b/src/game/maps/town.ts index 8061ab5..a47d730 100644 --- a/src/game/maps/town.ts +++ b/src/game/maps/town.ts @@ -70,6 +70,21 @@ export const Town = (): Place => { "Streets of Sim City" ) + const northAve = new Place( + new ImproperNoun('North Avenue'), + "Streets of Sim City" + ) + + const eastAve = new Place( + new ImproperNoun('East Avenue'), + "Streets of Sim City" + ) + + const southAve = new Place( + new ImproperNoun('South Avenue'), + "Streets of Sim City" + ) + const alley = new Place( new ImproperNoun('alley'), "A spooky alley" @@ -90,9 +105,9 @@ export const Town = (): Place => { "Extra scary" ) - const loop = new Place( - new ProperNoun("Loop"), - "This place is a loop" + const square = new Place( + new ProperNoun("Central Square"), + "The center of town" ) woods.choices.push( @@ -277,31 +292,15 @@ export const Town = (): Place => { ) }) - for (let i = 0; i < 10; i++) { - loop.choices.push( - new Choice( - "A choice", - "This is a choice", - (world, executor) => { - return new LogLine(`This does not do anything.`) - } - ) - ) - } - home.biconnect(Direction.North, westAve) westAve.biconnect(Direction.West, westRoad) westAve.biconnect(Direction.North, alley) westRoad.biconnect(Direction.South, woods) westRoad.biconnect(Direction.North, bosses) - westAve.biconnect(Direction.East, loop) - loop.connect(Direction.North, loop) - loop.connect(Direction.South, loop) - loop.connect(Direction.East, loop) - loop.connect(Direction.Northwest, loop) - loop.connect(Direction.Northeast, loop) - loop.connect(Direction.Southwest, loop) - loop.connect(Direction.Southeast, loop) + square.biconnect(Direction.East, eastAve) + square.biconnect(Direction.West, westAve) + square.biconnect(Direction.North, northAve) + square.biconnect(Direction.South, southAve) return home }