瀏覽代碼

Add some empty streets to the town

vintage
Fen Dweller 5 年之前
父節點
當前提交
ab60d3543e
共有 1 個文件被更改,包括 22 次插入23 次删除
  1. +22
    -23
      src/game/maps/town.ts

+ 22
- 23
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
}

Loading…
取消
儲存