Skip to content

feat: kill visual effect + brain-size graph#1

Merged
as311-ops merged 5 commits into
mainfrom
feat/kill-visuals-and-brain-size-graph
Apr 1, 2026
Merged

feat: kill visual effect + brain-size graph#1
as311-ops merged 5 commits into
mainfrom
feat/kill-visuals-and-brain-size-graph

Conversation

@as311-ops

Copy link
Copy Markdown
Owner

Summary

  • Kill visuals: When KILL_FORWARD action fires, a 💀 emoji appears at the victim's grid cell and fades out over ~1.4s. Kill coordinates flow from actions.ts via a callback → Simulator._pendingKillEventsSimState.killEvents (Transferable Float32Array) → SimCanvas particle system.
  • Brain size graph: New amber curve in StatsGraph tracks avgNeuronCount per generation, normalized against the historical max. Values are extracted from GenomeProfile before it's stripped from history, so no additional memory cost.
  • CLAUDE.md: Project overview, commands, and architecture notes for future Claude Code sessions.

Test plan

  • Run sim with killEnable: true — confirm 💀 icons appear and fade when agents kill each other
  • Run sim for several generations — confirm amber "Brain Size" curve appears in the stats graph with correct scale labels on the right axis
  • Build passes (npm run build)

- Show 💀 emoji with fade-out at kill locations in the arena;
  kill coords flow worker→SimState (Transferable) → SimCanvas particles
- Add Brain Size curve (amber) to StatsGraph tracking avgNeuronCount
  per generation; scalars extracted from GenomeProfile before it is
  stripped from history to keep memory usage low
- Add CLAUDE.md with project overview, commands and architecture notes

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel

vercel Bot commented Apr 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
darwin-dots Ready Ready Preview, Comment Apr 1, 2026 2:47pm

- Move KILL_FORWARD before NUM_ACTIONS in Action enum so isEnabled()
  returns true and actionLevels array is large enough to hold the kill
  action level — previously kill could never fire due to index overflow
- Add KILL to ACTION_NAMES arrays in simulator.ts and genome-profile.ts
- Replace Mutants preset with Kill Bill: center circle challenge with
  killEnable=true, longer genomes (32 genes, 8 neurons) to give the
  kill action room to evolve

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…efault

- Rewrite CHALLENGE_RADIOACTIVE_WALLS to match original biosim4 logic:
  west wall active first half, east wall second half; probabilistic death
  P=1/distance replaces binary closing-zone mechanic
- Update challenge overlay to radioactive-wall shape with per-column
  amber gradient and trefoil symbols on the active wall
- Disable sounds by default (only restore if user explicitly enabled)
- Add Impressum link (implisense.com/de) to splash screen and main app

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add camera icon (PNG download) and video icon (3s WebM via MediaRecorder
+ captureStream) as overlay buttons in the bottom-right corner of the
simulation canvas. Recording shows a red pulse indicator while active.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@as311-ops
as311-ops merged commit bc0110a into main Apr 1, 2026
2 of 3 checks passed
@as311-ops
as311-ops deleted the feat/kill-visuals-and-brain-size-graph branch April 1, 2026 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant