From a604e610caa7310850a5fd0272ea3cd5848216d4 Mon Sep 17 00:00:00 2001 From: sHa Date: Sun, 22 Feb 2026 02:13:45 +0200 Subject: [PATCH] feat: implement DNA gene system for cell and virus evolution with mutation and color derivation --- index.html | 112 +++++++--- src/js/constants.js | 12 + src/js/dna.js | 215 ++++++++++++++++++ src/js/entity.js | 169 ++++++++++++--- src/js/evolution.js | 247 +++++++++++++++++---- src/js/guide.js | 77 ++----- src/js/main.js | 32 +-- src/js/populationPanel.js | 445 ++++++++++++++++++++++++++++++++++++++ src/styles/population.css | 325 ++++++++++++++++++++++++++++ 9 files changed, 1457 insertions(+), 177 deletions(-) create mode 100644 src/js/dna.js create mode 100644 src/js/populationPanel.js create mode 100644 src/styles/population.css diff --git a/index.html b/index.html index 9b0a07f..dfa2264 100644 --- a/index.html +++ b/index.html @@ -14,13 +14,14 @@ - + + @@ -32,6 +33,43 @@ # + + + + + +
@@ -44,7 +82,7 @@ aria-controls="guidePanel" >ℹ - +