Skip to content

Commit

Permalink
change import test_3
Browse files Browse the repository at this point in the history
  • Loading branch information
ibra-kdbra committed Nov 24, 2024
1 parent 7462b2d commit 490f8c0
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions Hangman/scripts/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,19 +102,19 @@ const handleLoadComplete = (id, item) => {
};
const loadData = () => {
let queue = new createjs.LoadQueue(false);
queue.loadFile({ id: "sky", src: "/images/sky.png" });
queue.loadFile({ id: "city", src: "/images/city.png" });
queue.loadFile({ id: "right", src: "/images/right.png" });
queue.loadFile({ id: "left", src: "/images/left.png" });
queue.loadFile({ id: "mid", src: "/images/middle.png" });
queue.loadFile({ id: "sky", src: "./images/sky.png" });
queue.loadFile({ id: "city", src: "./images/city.png" });
queue.loadFile({ id: "right", src: "./images/right.png" });
queue.loadFile({ id: "left", src: "./images/left.png" });
queue.loadFile({ id: "mid", src: "./images/middle.png" });
queue.loadFile({ id: "mountains", src: "./images/mountains.png" });
queue.loadFile({ id: "correct", src: "/audio/correct.mp3" });
queue.loadFile({ id: "wrong", src: "/audio/wrong.mp3" });
queue.loadFile({ id: "win", src: "/audio/win.mp3" });
queue.loadFile({ id: "lose", src: "/audio/lose.mp3" });
queue.loadFile({ id: "rotate", src: "/audio/rotate.mp3" });
queue.loadFile({ id: "pullup", src: "/audio/pullup.mp3" });
queue.loadFile({ id: "hang", src: "/audio/hang.mp3" });
queue.loadFile({ id: "correct", src: "./audio/correct.mp3" });
queue.loadFile({ id: "wrong", src: "./audio/wrong.mp3" });
queue.loadFile({ id: "win", src: "./audio/win.mp3" });
queue.loadFile({ id: "lose", src: "./audio/lose.mp3" });
queue.loadFile({ id: "rotate", src: "./audio/rotate.mp3" });
queue.loadFile({ id: "pullup", src: "./audio/pullup.mp3" });
queue.loadFile({ id: "hang", src: "./audio/hang.mp3" });
queue.on("fileload", (event) => {
if (event.item.id === "sky") {
handleLoadComplete(event.item.id, queue.getResult("sky").src);
Expand Down

0 comments on commit 490f8c0

Please sign in to comment.