From 208b7c3743479f9bc5955b2d19fc6a01817bafb6 Mon Sep 17 00:00:00 2001 From: Jeremy Penner Date: Thu, 28 Dec 2023 16:57:39 -0500 Subject: [PATCH] Implement avatar animations --- body.html | 12 ++++++++- index.html | 4 +-- index.js | 79 ++++++++++++++++++++++++++++++++++++++++++++---------- 3 files changed, 78 insertions(+), 17 deletions(-) diff --git a/body.html b/body.html index db4bc97..bc3e846 100644 --- a/body.html +++ b/body.html @@ -15,10 +15,13 @@ line-height:1.2 } - +

+
+

Actions

+

Limbs

@@ -63,6 +66,13 @@ labelLimb(limbContainer, ilimb) showAnimations(limb, limbContainer, LimbImpl) } + const actionContainer = document.getElementById("actions") + for (const action of choreographyActions) { + if (action == "stand" || body.actions[action] != body.actions["stand"]) { + actionContainer.appendChild(textNode(action, "div")) + actionContainer.appendChild(createAnimation(action, body, BodyImpl)) + } + } } } catch (e) { showError(e, filename) diff --git a/index.html b/index.html index 86aae3c..d429f22 100644 --- a/index.html +++ b/index.html @@ -15,7 +15,7 @@ line-height:1.2 } - +