Skip to content

A town simulation in pale isometric line art, implemented with Ritmo ECS and PixiJs 3D

Start new on both founding screens; the checks press it by its new name

SandroMaglionebee76fefbbb0
diff --git a/scripts/check-browser.ts b/scripts/check-browser.ts
index 71437d5..32f7599 100644
--- a/scripts/check-browser.ts
+++ b/scripts/check-browser.ts
@@ -43,7 +43,7 @@ try {
await page.goto(process.env.GAME_BASE_URL??"http://127.0.0.1:5232")
await page.waitForFunction(()=>window.town)
await page.getByRole("button",{name:"small",exact:true}).click()
- await page.getByRole("button",{name:"Found the town",exact:true}).click()
+ await page.getByRole("button",{name:"Start new",exact:true}).click()
await page.waitForFunction(()=>!window.town.ui.founding)
await page.locator(".toolbar .pause").click()
const hall=(await entities("Town/TownHall"))[0]!,tile=hall.components["Town/Tile"]
@@ -105,7 +105,7 @@ try {
await page.getByRole("button",{name:"Choose new land without saving",exact:true}).click()
await page.getByRole("button",{name:"large",exact:true}).click()
await page.getByRole("button",{name:"rich",exact:true}).click()
- await page.getByRole("button",{name:"Found the town",exact:true}).click()
+ await page.getByRole("button",{name:"Start new",exact:true}).click()
await page.waitForFunction(()=>!window.town.ui.founding&&window.town.ui.stats?.charter.size==="large")
assert.equal((await entities("Town/House")).length,0)
assert.equal((await entities("Town/TownHall")).length,1)
diff --git a/scripts/check-phone.ts b/scripts/check-phone.ts
index f9c072e..e545686 100644
--- a/scripts/check-phone.ts
+++ b/scripts/check-phone.ts
@@ -20,7 +20,7 @@ try {
await page.goto(process.env.GAME_BASE_URL??"http://127.0.0.1:5232")
await page.waitForFunction(()=>"town" in window)
// The found button sits inside the screen without scrolling: it is pinned to the bottom.
- const found=page.getByRole("button",{name:"Found the town",exact:true})
+ const found=page.getByRole("button",{name:"Start new",exact:true})
const box=(await found.boundingBox())!
assert.ok(box.y>=0&&box.y+box.height<=height,`${name}: the found button is off screen`)
await page.screenshot({path:`${output}/${name}-picker.png`})
diff --git a/src/host.ts b/src/host.ts
index b6a199e..bc3def7 100644
--- a/src/host.ts
+++ b/src/host.ts
@@ -1434,7 +1434,7 @@ export const createHost = async (
}
refresh()
const actions = el("div", "actions")
- const found = el("button", "frame primary", cancellable ? "Found the town" : "Start new")
+ const found = el("button", "frame primary", "Start new")
found.onclick = () => {
if (visiting) endVisit()
ui.edits.push({ type: "newTown", charter: { ...choice } })