Repository navigation
Polish DoF blur, far camera follow, FPS, day/night object tint & night torch, and HUD text - #178
Merged
Merged
Conversation
…t torch, and HUD text
dominicletz
enabled auto-merge (squash)
November 22, 2026 01:50
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: 46483f4d-5ca9-4e16-b7ee-7d02bfb1ce27) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Addresses five gameplay and visual polish items (
LK-132–LK-136):LK-132): WidenedLOOK.focusBand(0.04 -> 0.14), softenedCOC_REACH(0.12 -> 0.3), cappedCOC_MAX_PX(16 -> 4.5), added early-exit whenradius < 0.5, and moved the DoF blur pass to half resolution inassets/js/hd2d/picture.js.LK-133): UpdatedcameraFocus(x, y)inassets/js/frame.jsto preserve0.72near-keep framing withincameraTetherNear(240) and smoothly blend to1:1hero-centered tracking pastcameraTetherFar(520).LK-134): Gated the artificial 70mspaintGapthrottle behindtestHooks, cachedpictureCell()per 36-unit cell inassets/js/horizon.js(~6.25×less work on chunk crossings), memoizedsceneKey(snap)viaWeakMap, cachedapplyFrame()by stage size and town rank (restoringLOOK.fovafter portrait arrival inpicture.seat), and moved DoF to half-res with early-out.LK-135): AddedobjectTintHex(clock, kind)inassets/js/scene.jsandapplyPhaseTint()inassets/js/render.jsso unlit trees, castle, buildings, props, deer, and monsters soften daytime contrast and dim warmly at dusk and coolly at night. Added a pooled flickeringheroTorchpoint light and warm additive groundheroAurathat turn on automatically at dusk/night.LK-136): Shortened bonus/relic labels (Forge +15%,Spire · recover faster,Relics: 0), laid.bonusesout as a single compact inline row, and trimmed world-pinned caption font sizes and opacity while keeping the 10-slot glass budget and mobile clearances intact.Verification
mix format --check-formatted,mix compile --warnings-as-errors,mix assets.build,mix test --cover(145/145, 82.92%)npm test --prefix assets(323/323),npm run models(21 assets),npm run check --prefix assetsnode --test e2e/steer.test.js e2e/probe.test.js e2e/roster.test.js e2e/screen.test.js script/ci_budget.test.js(36/36)e2e/smoke.spec.js,e2e/perf.spec.js,e2e/mobile.spec.js,twoPlayerNight(includingheroTorchday/night assertions),pictureGrade,theFogEdgeIsNotAFlatFill,paradeShowsEveryKind,far from the keep,value steps,portraitHero, andsixSeatMatch.Note
Low Risk
Client-only graphics, camera, caching, and HUD copy changes with unit and Playwright coverage; no server, auth, or persistence paths touched.
Overview
Visual and client-performance polish spanning camera, post-processing, rendering, horizon painting, and diegetic HUD copy.
Depth of field is toned down via a wider in-focus band, lower max blur, and half-resolution DoF with shader early-outs so distant scenes stay sharper and cheaper to draw.
Camera
cameraFocusnow keeps keep-tethered framing (0.72follow) inside radius 240 and smoothly blends to 1:1 hero tracking by 520 so frontier exploration does not walk off-screen.Frame rate improvements gate the 70ms
paintGapthrottle to test hooks only, memoizesceneKeyper snapshot, cache horizonpictureCellper 36-unit cell inpaintWindow, cacheapplyFrameby stage size/town rank, and skip redundantplaceCameraonqueuefor live players;picture.seatrestores world FOV after portrait arrival.Lighting feel adds
objectTintHexphase tints on unlit world/monster sprites and a dusk/night hero torch point light plus ground aura, exposed to E2E viawindow.__lastKeep.heroTorch.HUD shortens forge/spire/relic strings, tightens world-pinned caption typography in
game.css, and joins relic lines with middots.Reviewed by Cursor Bugbot for commit 2f5e47a. Configure here.