Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Ashscript-Game/ashscript
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: Ashscript-Game/ashscript
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: solis2d-lighting
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 12 commits
  • 174 files changed
  • 2 contributors

Commits on Jun 13, 2026

  1. feat(client): migrate to Bevy 0.18

    Upgrade bevy 0.14 -> 0.18 (and align bevy_egui 0.39, bevy-inspector-egui
    0.36, bevy_hanabi 0.18) against an in-org fork of bevy_magic_light_2d
    ported to 0.18.
    
    Adapt the client to the new APIs: bundles -> required components for
    cameras, sprites and 2D meshes; buffered Event -> Message; Query::single
    -> Result; relocated import paths; and glam-version bridging for hexx
    interop. Restore the F3 egui world inspector, now that bevy_egui and
    bevy-inspector-egui are version-aligned.
    CarsonBurke committed Jun 13, 2026
    Configuration menu
    Copy the full SHA
    808837c View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2026

  1. Configuration menu
    Copy the full SHA
    fa1e9e4 View commit details
    Browse the repository at this point in the history
  2. fix(client): make the scene visible after the Bevy 0.18 port

    Render the scene cameras (order 0) before the post-processing camera that
    composites them, matching the magic-light examples. Raise the global
    skylight from a near-black 0.025 to a tunable day/night pair, and give
    each terrain tile a small deterministic grey variation so adjacent hexes
    are distinguishable.
    CarsonBurke committed Jun 14, 2026
    Configuration menu
    Copy the full SHA
    fba9206 View commit details
    Browse the repository at this point in the history
  3. feat(server): add production chain, unit lifecycle, shields, and scen…

    …ario presets
    
    Resource extraction, assembler smelting, distributor pushing, energy costs for move/attack, aging+death-to-scrap, shields absorbing damage, and fabricate-spawn. Adds ASHSCRIPT_PRESET (basic|production_line|combat). Also bounds bot A* to the map (an unreachable target previously searched the infinite plane) and fixes the turret-repair target lookup.
    CarsonBurke committed Jun 14, 2026
    Configuration menu
    Copy the full SHA
    71e7a86 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c4d544a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b90d12e View commit details
    Browse the repository at this point in the history
  6. feat(server): allow selecting a scenario preset by CLI argument

    Positional arg (`mono-server <preset>`) takes precedence over ASHSCRIPT_PRESET, then falls back to basic.
    CarsonBurke committed Jun 14, 2026
    Configuration menu
    Copy the full SHA
    2a8f882 View commit details
    Browse the repository at this point in the history
  7. chore: snapshot in-progress working tree as solis2d-lighting baseline

    Mirrors the user's current uncommitted bevy-client + server work at the
    time the solis_2d lighting migration began, so the migration commits are
    cleanly separable and the user's WIP is preserved in this isolated worktree.
    
    Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
    claude committed Jun 14, 2026
    Configuration menu
    Copy the full SHA
    8126aae View commit details
    Browse the repository at this point in the history
  8. feat(client): replace magic_light GI with solis_2d radiance cascades

    Swaps the deferred SDF + screen-space-probe lighting engine
    (bevy_magic_light_2d) for our Bevy 0.18 fork of solis_2d's radiance-cascade
    GI. The client builds with no errors.
    
    Architecture change: magic_light split the scene across three off-screen
    render-layer cameras (floor/walls/objects) composited by a post-processing
    camera. solis lights the camera's own view in-place via a render-graph node,
    so the client now renders the whole world through a single HDR Camera2d
    carrying a tuned night RadianceConfig; GI happens in-place to the window.
    
    - Cargo: client depends on the local solis_2d fork (absolute path for this
      deep verification worktree; see the in-file note for the real-checkout
      relative path). Removed the bevy-magic-light-2d [patch] from the workspace
      root and the magic_light git dependency from the client.
    - New crate::lighting module:
      * LightingPlugin now registers SolisPlugin.
      * night_radiance_config(): permanent-night cascade config; the old
        SkylightLight2D ambient is folded into RadianceConfig.modulate (cool dim
        tint) since solis has no separate ambient term.
      * omni_light(intensity,color,falloff) / wall_occluder(h_size): map the
        game's legacy point-light / occluder params onto solis Emitters.
      * SpriteCamera marker + CAMERA_LAYER_* / ALL_LAYERS shims (all -> layer 0)
        so the many historical call sites compile unchanged.
    - game.rs: three scene cameras + CameraTargets -> one lit world camera.
    - minimap.rs: three off-screen-target cameras -> one zoomed viewport camera.
    - main.rs: drop BevyMagicLight2DPlugin, BevyMagicLight2DSettings and the
      magic_light register_type calls.
    - All OmniLightSource2D{..} literals -> omni_light(..); the wall
      LightOccluder2D{..} -> wall_occluder(..); magic_light imports across
      unit/structure/projectile/engine/debug swapped to crate::lighting.
    
    Known visual tuning the user must verify in-app (see HANDOFF.md): emitter
    radius/intensity scale, the night modulate tint, and that walls occlude
    correctly with a Rect (not hex) SDF.
    
    Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
    claude committed Jun 14, 2026
    Configuration menu
    Copy the full SHA
    46b46a0 View commit details
    Browse the repository at this point in the history
  9. fix(client): correct wall occluder half-extents and soften night modu…

    …late
    
    From adversarial review:
    
    - engine/resources.rs: `wall_occluder` takes RECT HALF-EXTENTS, but the call
      site passed the full hex width (Vec2::splat(HEX_SIZE.x)=(64,64)), producing a
      128x128 occluder ~2x too large that overhung the wall sprite and leaked
      shadow into vertical neighbours. Pass half the sprite footprint
      (HEX_SIZE.x, HEX_SIZE.x*sqrt(3)/2). Also replaced the stale comment that
      referenced a non-existent hex SDF / gi_sdf.wgsl.
    - lighting/plugin.rs: documented wall_occluder's half-extent contract and
      softened the night `modulate` from (0.30,0.40,0.52) to (0.45,0.55,0.68) so
      lit sprites stay legible (the composite multiplies main+light by modulate,
      dimming lit areas too).
    
    Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
    claude committed Jun 14, 2026
    Configuration menu
    Copy the full SHA
    e09a752 View commit details
    Browse the repository at this point in the history
  10. docs: add HANDOFF.md for the solis_2d lighting migration

    Documents what builds, the full magic_light->solis API mapping, the 0.15->0.18
    port deltas, RC improvements made vs. remaining (with exact shader locations),
    the required in-app visual verification, and how to land this on the real
    checkout.
    
    Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
    claude committed Jun 14, 2026
    Configuration menu
    Copy the full SHA
    0364670 View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2026

  1. Configuration menu
    Copy the full SHA
    26bb04e View commit details
    Browse the repository at this point in the history
Loading