Halloween backing codepen Karel
(YES bleeps 01 02 03 04 sounds, YES backing sound from kids)

Halloween match game: belangrijk assets code inladen na de frameload!!

2 labels,
daarna waiter
daarna frame.loadAssets([{ },{ }], "path");
frame.on("complete", () => {
// code

}
Origineel voorbeeld : codepen match backcolors
'draai afbeeldingen met zelfde achtergrondkleur'
Maar wij veranderen nu de achtergrondafbeeldingen::
var waiter = new Waiter(stage);
waiter.show(); // show the waiter until assets load frame.loadAssets(
    [{id:"blad", src:"XlYKL18.png"},
     {id:"pompoen", src:"9bgYJeQ.png"},
     {id:"heks", src:"gX49SiE.png"},
     {id:"spook", src:"zReCEc2.png"},
     {id:"frontpage", src:"wBJHGON.png"},
    ], "https://i.imgur.com/");
 frame.on("complete", () => {
   waiter.hide();
var pics = ["blad", "pompoen", "heks","spook"];
  var answers = shuffle(pics.concat(pics,pics,pics));
var index = 0;
function makeCard() {
  var front = asset("frontpage").center().sca(1.1).clone();
      back = new Page(front.width,front.height,blue,green);
      var answer = answers[index++];
      asset(answer).clone().scaleTo(back,95,95).center(back);
      var card = new Flipper(front, back, null, null, null, null, null, false, false).centerReg({add:false});
      card.answer = answer;
      return card;
}

andere voorbeeldcode met assets: zimjs.com/elearning/quiz/match.js