Skip to content

Commit

Permalink
fix blinking
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewmeeks committed Nov 30, 2023
1 parent 8622083 commit 7969f8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blob/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ function spawnCharacter(id, state) {
const charElem = elemFrag.querySelector(".character");
charElem.id = `char-${id}`;
viewportElem.appendChild(elemFrag);
blinkLoop(id);
states[id] = structuredClone(state);
blinkLoop(id);
changeAppearance(id, state);
charElem.style.setProperty("--rotation", `${state.rot}deg`);
}
Expand Down

0 comments on commit 7969f8b

Please sign in to comment.