This commit is contained in:
Turtle committed 2025-12-28 18:46:33 +01:00
1 parent 2d499af9c0
commit 408e115134
8 files changed
+71 -23

No files matched your search

+10
View File
@@ -1,4 +1,7 @@
//=> use showSkillTree() -> void;
//=> use playLevelSound() -> void;
//=> use playXPSound() -> void;
const getSkillTree = () => ({
id: "root",
@@ -291,4 +294,11 @@ function generateSkillTree(skillTree, abilities) {
drawNode(null, skillTree);
return [svg, levelCount];
}
async function playLevelSound() {
await playSound("../audio/levelup2.mp3");
}
async function playXPSound() {
await playSound("../audio/levelup1.mp3");
}