From 742a8154cf243bf2fed45bfac75ba0ff58fe261c Mon Sep 17 00:00:00 2001 From: sHa Date: Sat, 21 Feb 2026 18:44:25 +0200 Subject: [PATCH] feat: add logo word with letter icons and physics - Introduced a new logo system consisting of individual letter SVG icons for "shadolldev". - Implemented LogoController to manage the floating logo word, including physics for movement and collisions with entities. - Added LogoLetter class to handle individual letter behavior, including ejection and reattachment based on collisions. - Integrated logo functionality into the main application flow, ensuring it initializes alongside the evolution system. - Enhanced settings to control debug visibility for letter hit counts. - Created styles for the logo letters, including animations for ejection and hit effects. - Updated constants to define logo-related parameters such as letter size, speed, and collision properties. --- index.html | 22 ++- src/icons/letter-a-box.svg | 1 + src/icons/letter-d-box.svg | 1 + src/icons/letter-d.svg | 1 + src/icons/letter-e.svg | 1 + src/icons/letter-h-box.svg | 1 + src/icons/letter-l-box.svg | 1 + src/icons/letter-o-box.svg | 1 + src/icons/letter-s-box.svg | 1 + src/icons/letter-v.svg | 1 + src/js/constants.js | 26 ++++ src/js/evolution.js | 28 ++++ src/js/logoController.js | 288 +++++++++++++++++++++++++++++++++++++ src/js/logoLetter.js | 245 +++++++++++++++++++++++++++++++ src/js/main.js | 17 ++- src/js/settings.js | 43 +++++- src/styles/logo.css | 100 +++++++++++++ src/styles/main.css | 4 +- 18 files changed, 771 insertions(+), 11 deletions(-) create mode 100644 src/icons/letter-a-box.svg create mode 100644 src/icons/letter-d-box.svg create mode 100644 src/icons/letter-d.svg create mode 100644 src/icons/letter-e.svg create mode 100644 src/icons/letter-h-box.svg create mode 100644 src/icons/letter-l-box.svg create mode 100644 src/icons/letter-o-box.svg create mode 100644 src/icons/letter-s-box.svg create mode 100644 src/icons/letter-v.svg create mode 100644 src/js/logoController.js create mode 100644 src/js/logoLetter.js create mode 100644 src/styles/logo.css diff --git a/index.html b/index.html index 75d3165..df0eb61 100644 --- a/index.html +++ b/index.html @@ -11,11 +11,12 @@ - + + @@ -226,6 +227,25 @@ + +
+ + +
+ letter hit count +
+ off + + on +
+
+
+