const p={checkpoints:[{id:"checkpoint1",checkCondition:(s,c={},a={})=>{console.log(s),console.log(c),console.log(a);const t=a.playerPosition&&a.playerPosition.x===6&&a.playerPosition.z===14,i=a.blocklyMoves?.filter(n=>n.type==="sound"&&n.value==="MEOW").length||0,e=i>=1,l=a.blocklyMoves?.some(n=>n.type==="dialogue"&&n.value==="Mia.. Miaaaa..")||!1;return console.log("CHECKPOINT VERIFICATION:",{playerPosition:a.playerPosition,playerAtTarget:t,meowSoundCount:i,hasMeowSound:e,hasSpecificDialogue:l,totalMoves:a.blocklyMoves?.length||0}),t&&e&&l?(console.log("CHECKPOINT PASSED!"),console.log("   Player at position (6, 14)"),console.log(`   Used MEOW sound ${i} time(s)`),console.log("   Used dialogue: 'Mia.. Miaaaa..'"),!0):(console.log("CHECKPOINT FAILED:"),t||console.log("   Player not at target position (6, 14)"),e||console.log("   Missing MEOW sound (used 0 times)"),l||console.log("   Missing dialogue: 'Mia.. Miaaaa..'"),!1)},blockValidator:(s,c,a={},t={})=>{console.log("🔍 Validating block sequence for Game 2 Level 1 Checkpoint 1:",s);const i=s.filter(o=>o.type!=="speed").map(o=>`${o.type}:${o.value}`);console.log("Normalised moves (speed ignored):",i);const e=i.filter(o=>o.startsWith("move:"));console.log("Movement-only sequence:",e);const l=["move:forward","move:left","move:forward","move:forward","move:forward","move:left","move:forward","move:forward","move:forward","move:forward","move:forward","move:forward","move:forward","move:forward","move:forward"],r=e.length>=l.length&&l.every((o,g)=>e[g]===o),n=s.some(o=>o.type==="sound"&&o.value==="MEOW"),d=s.some(o=>o.type==="dialogue"&&o.value==="Mia.. Miaaaa..");return r&&n&&d?(console.log("✅ BLOCK VALIDATION PASSED! 🎉"),console.log(`   ✓ Movement: ${e.length} blocks (prefix matches)`),console.log("   ✓ MEOW sound: ✅ Found"),console.log("   ✓ Dialogue 'Mia.. Miaaaa..': ✅ Found"),!0):(console.log("❌ BLOCK VALIDATION FAILED:"),r||(console.log(`   ❌ Expected prefix (${l.length} moves):`),console.log(`      ${l.join(" → ")}`),console.log(`   ❌ Got (${e.length} moves):`),console.log(`      ${e.slice(0,l.length).join(" → ")}...`)),n||console.log("   ❌ Missing 'sound:MEOW' block"),d||console.log("   ❌ Missing 'dialogue:Mia.. Miaaaa..' block"),!1)},dialogues:[{speaker:"Rob",message:"Mia!",characterDirection:"left",dialogType:"story",image:"images/ROB_Dialogue_Head.webp",modelAnimation:{triggered:"during",model:"PDISK_ANIM_MIA_WALK",from:[250,0,810],to:[-350,0,810],duration:4}},{speaker:"Rob",message:"Gunakan atur cara yang anda pelajari, gabungkan atur cara pergerakan, kesan bunyi dan dialog supaya Rob dapat mencari Mia.",characterDirection:"left",dialogType:"checkpoint",image:"images/ROB_Dialogue_Head.webp"}],cameraPan:{target:[250,0,810],duration:2,zoom:.5},dialogType:"story"}]};export{p as checkpointConfig};
