Skip to content

Commit 7c19b97

Browse files
Fidget RobotFidget Robot
authored andcommitted
Begin camera at seed scale
1 parent bb779eb commit 7c19b97

4 files changed

Lines changed: 12 additions & 4 deletions

File tree

‎SPEC.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ Action categories currently include:
126126

127127
Current browser HUD behavior:
128128
- the map is a fixed foreground layer at the top of the viewport while status, actions, and the log scroll beneath it; score, year, season, and life stage are part of the map layer as a compact overlay inside the picture
129-
- the map camera begins tightly centered on the realistically small player seed, with only fragments of nearby trees entering the frame, then progressively pulls back as structural growth and life-stage advancement reveal the surrounding grove
129+
- the map camera begins at a macro scale tightly centered on the player seed, where soil grains, a pebble, and nearby debris establish a world only inches wide; it pulls back as the player grows, allowing fragments of neighboring trees to enter during early growth before life-stage advancement reveals the surrounding grove
130130
- the actions-remaining indicator appears above the action list
131131
- when the player is out of actions, the HUD hides that indicator instead of redundantly showing both “no actions remaining” and the end-turn prompt
132132
- the map and status panels can be minimized with small top-right corner controls and restored with compact chips; both start expanded at the beginning of a run

‎index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,6 @@ <h2 id="modal-title">Message</h2>
167167
if (el) el.textContent = 'unknown';
168168
});
169169
</script>
170-
<script type="module" src="main.js?rev=growth-camera-v1"></script>
170+
<script type="module" src="main.js?rev=growth-camera-v2"></script>
171171
</body>
172172
</html>

‎main.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ import { renderResourcePhaseBody } from './ui/resources.js';
6161
import { renderSpringSeedFateBody, renderGameOverBody, renderSuccessionBody, renderVictoryBody } from './ui/outcomes.js';
6262
import { renderSpeciesSummary, initSpeciesSelectUI } from './ui/species.js';
6363
import { createLeaderboardStore, createRunRecord, renderLeaderboardBody } from './ui/leaderboard.js';
64-
import { renderForestScene } from './ui/canvas.js?rev=growth-camera-v1';
64+
import { renderForestScene } from './ui/canvas.js?rev=growth-camera-v2';
6565
import { showFeedbackUI, setTurnEndBannerUI, initTooltipsUI, initCollapsibleGroupsUI, updateHudUI } from './ui/hud.js';
6666
import { createInitialBrowserState, getBrowserElements, initPanelCollapseUI, initSpeciesSelectController, startBrowserGame, showGamePanelsUI } from './ui/browser-app.js';
6767

‎ui/canvas.js‎

Lines changed: 9 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)