CHANGELOG, tornado showcase shot, capture script update

This commit is contained in:
PolyCity
2026-08-22 19:41:13 +00:00
parent 77931e9747
commit 60a92408bb
15 changed files with 42 additions and 2 deletions
+10
View File
@@ -85,6 +85,16 @@ await page.evaluate(() => { window.POLYCITY._parts.renderer.timeOfDay = 0.75; })
await page.waitForTimeout(300);
await snap('scene-night.png');
// tornado aftermath
await page.evaluate(() => {
const c = window.POLYCITY.city;
window.POLYCITY._parts.renderer.timeOfDay = 0.30;
c.notify = () => {}; // keep the frame clean
c.spawnTornado(); c.spawnTornado();
});
await page.waitForTimeout(500);
await snap('scene-tornado.png');
const stats = await page.evaluate(() => {
const c = window.POLYCITY.city;
return { pop: c.stats.pop, dev: [...c.grid.level].filter(v => v > 0).length, happy: c.stats.happiness };