1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4026],{62408:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/kids-ai/projects/ai-game-maker",function(){return a(91582)}])},18661:function(e,t,a){"use strict";var s=a(85893);a(67294);var i=a(9008),r=a.n(i);t.Z=e=>{let{title:t,description:a,canonicalUrl:i,ogImage:n="/images/og-default.png",schemaData:l,keywords:o=[]}=e;return(0,s.jsxs)(r(),{children:[(0,s.jsx)("title",{children:t}),(0,s.jsx)("meta",{name:"description",content:a}),(0,s.jsx)("meta",{name:"keywords",content:o.join(", ")}),i&&(0,s.jsx)("link",{rel:"canonical",href:i}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{property:"og:title",content:t}),(0,s.jsx)("meta",{property:"og:description",content:a}),(0,s.jsx)("meta",{property:"og:image",content:n}),i&&(0,s.jsx)("meta",{property:"og:url",content:i}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,s.jsx)("meta",{name:"twitter:title",content:t}),(0,s.jsx)("meta",{name:"twitter:description",content:a}),(0,s.jsx)("meta",{name:"twitter:image",content:n}),(0,s.jsx)("meta",{name:"robots",content:"index, follow"}),(0,s.jsx)("meta",{name:"author",content:"SiteOptz"}),(0,s.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),l&&(0,s.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(l)}})]})}},4264:function(e,t,a){"use strict";var s=a(85893);a(67294),t.Z=e=>{let{type:t="coppa",className:a=""}=e,i={coppa:{text:"COPPA",tooltip:"COPPA Compliant - Verified safe for children",color:"#4caf50",bgColor:"#e8f5e9"},safetyCertified:{text:"Safety Certified",tooltip:"Safety verified and certified by siteoptz.ai",color:"#2196f3",bgColor:"#e3f2fd"},teacherApproved:{text:"Teacher Approved",tooltip:"Approved by certified educators",color:"#ff9800",bgColor:"#fff3e0"}},r=i[t]||i.coppa;return(0,s.jsxs)("span",{className:"safety-badge ".concat(a),style:{backgroundColor:r.bgColor,color:r.color,border:"1px solid ".concat(r.color),padding:"4px 10px",borderRadius:"12px",fontSize:"0.75em",fontWeight:"bold",display:"inline-block",cursor:"help"},title:r.tooltip,children:["â ",r.text]})}},91582:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return x}});var s=a(20567),i=a(14932),r=a(85893),n=a(67294),l=a(33299),o=a(41664),c=a.n(o),d=a(18661),m=a(4264);function x(){var e,t;let{data:a}=(0,l.useSession)(),o=(null==a?void 0:a.user)?"parent-pro":"free",[x,h]=(0,n.useState)(""),[u,p]=(0,n.useState)(""),[g,y]=(0,n.useState)("Easy"),[b,j]=(0,n.useState)([]),[f,v]=(0,n.useState)(null),[N,D]=(0,n.useState)(""),[w,C]=(0,n.useState)(!1),[k,A]=(0,n.use
1State)(null),[F,S]=(0,n.useState)([]),[E,L]=(0,n.useState)("create"),[z,G]=(0,n.useState)({currentLevel:0,score:0,playerChoices:[]}),M=[{id:"adventure",name:"Adventure Quest",emoji:"\uD83D\uDDFAï¸",description:"Explore magical worlds and solve puzzles"},{id:"puzzle",name:"Brain Puzzles",emoji:"\uD83E\uDDE9",description:"Think your way through clever challenges"},{id:"friendship",name:"Friendship Story",emoji:"\uD83D\uDC6B",description:"Make friends and help others on your journey"},{id:"nature",name:"Nature Explorer",emoji:"\uD83C\uDF3F",description:"Discover animals and plants in the wild"},{id:"space",name:"Space Mission",emoji:"\uD83D\uDE80",description:"Travel to planets and meet alien friends"},{id:"mystery",name:"Detective Mystery",emoji:"\uD83D\uDD0D",description:"Solve fun mysteries and find clues"}],P=[{id:"riddle-door",type:"challenge",name:"Riddle Door",emoji:"\uD83D\uDEAA",description:"A door that only opens when you solve a clever riddle"},{id:"maze-puzzle",type:"challenge",name:"Magic Maze",emoji:"\uD83C\uDF00",description:"Navigate through a shifting magical maze"},{id:"friendship-test",type:"challenge",name:"Friendship Test",emoji:"\uD83E\uDD1D",description:"Help two characters become friends by solving their problem"},{id:"memory-game",type:"challenge",name:"Memory Challenge",emoji:"\uD83E\uDDE0",description:"Remember the pattern of magical lights to unlock the path"},{id:"magic-sword",type:"reward",name:"Magic Sword",emoji:"âï¸",description:"A glowing sword that helps you in future adventures"},{id:"wisdom-book",type:"reward",name:"Book of Wisdom",emoji:"\uD83D\uDCDA",description:"An ancient book that teaches you new spells"},{id:"friendship-medal",type:"reward",name:"Friendship Medal",emoji:"\uD83C\uDFC5",description:"A special medal showing your kindness to others"},{id:"crystal-key",type:"reward",name:"Crystal Key",emoji:"\uD83D\uDDDDï¸",description:"A magical key that opens secret doors"}],T=async()=>{if(!x.trim()||!u||!f||0===b.length){alert("Please fill in all the game details before generating!");return}if("free"===o&&F.length>=2){confirm("Free users can create 2 games. Upgrade to create unlimited games?")&&window.open("/kids-ai/pricing","_blank");return}C(!0);try{var e;await new Promise(e=>setTimeout(e,4e3));let t=M.find(e=>e.id===u),a=P.filter(e=>"challenge"===e.type).slice(0,3),s=P.filter(e=>"reward"===e.type).slice(0,2),i=[],r="Easy"===g?3:"Medium"===g?5:7;for(let e=0;e<r;e++){let r={id:"level_".concat(e+1),name:"Level ".concat(e+1,": ").concat(_(e,t.name)),setting:f,characters:b,challenges:[a[e%a.length]],rewards:[s[e%s.length]],story:I(e,f,b,t.name)};i.push(r)}let n={id:"game_".concat(Date.now(),"_").concat(Math.random().toString(36).substr(2,9)),title:x,genre:t.name,description:N||"An exciting ".concat(t.name.toLowerCase()," where you play as ").concat(null===(e=b[0])||void 0===e?void 0:e.name," in ").concat(f.name,"!"),levels:i,totalLevels:r,difficulty:g,createdAt:new Date,isPublished:!1,playCount:0};S(e=>[n,...e]),A(n),L("play"),G({currentLevel:0,score:0,playerChoices:[]}),h(""),p(""),v(null),j([]),D("")}catch(e){console.error("Error generating game:",e),alert("Oops! Something went wrong. Please try again!")}finally{C(!1)}},_=(e,t)=>{var a;return(null===(a=({"Adventure Quest":["The Journey Begins","Into the Unknown","Hidden Treasures","The Great Challenge","Victory Path","Master Quest","Ultimate Adventure"],"Brain Puzzles":["First Puzzle","Mind Bender","Logic Master","Brain Teaser","Puzzle Champion","Genius Level","Ultimate Challenge"],"Friendship Story":["Meeting Friends","Learning Together","Helping Others","Team Challenge","True Friendship","Community Hero","Best Friends Forever"],"Nature Explorer":["Forest Discovery","Animal Friends","Plant Mysteries","Nature Secrets","Wildlife Adventure","Ecosystem Hero","Nature Guardian"],"Space Mission":["Launch Day","First Planet","Alien Contact","Space Mystery","Cosmic Adventure","Galaxy Explorer","Universe Hero"],"Detective Mystery":["First Clue","Following Leads","Hidden Evidence","Solving Puzzles","Big Discovery","Case Closed","Master Detective"]})[t])||void 0===a?void 0:a[e])||"Level ".concat(e+1)},I=(e,t,a,s)=>{let i=a.find(e=>"hero"===e.type)||a[0],r=a.find(e=>"friend"===e.type),n=["Welcome to ".concat(t.name,"! You are ").concat(i.name,", and your adventure begins now. ").concat(r?"Your friend ".concat(r.name," is here to help you."):""," Are you ready to explore?"),"Deeper in ".concat(t.name,", you discover something amazing! ").concat(i.name," must use their ").concat(i.abilities[0]," to overcome the next challenge. What will you choose to do?"),"The adventure continues! ".concat(i.name," and ").concat((null==r?void 0:r.name)||"your companions"," face a big decision in ").concat(t.name,". Your choices will determine what happens next!"),"Things are getting exciting! ".concat(i.name," has learned so much on this journey through ").concat(t.name,". One more big challenge awaits!"),"The final challenge approaches! ".concat(i.name," must use everything they've learned in ").concat(t.name,". Victory is within reach!")];return n[e]||n[n.length-1]},B=e=>{if(!k)return;let t=[...z.playerChoices,e],a=z.score+10;G(e=>(0,i._)((0,s._)({},e),{score:a,playerChoices:t})),setTimeout(()=>{z.currentLevel<k.levels.length-1?G(e=>(0,i._)((0,s._)({},e),{currentLevel:e.currentLevel+1})):(S(e=>e.map(e=>e.id===k.id?(0,i._)((0,s._)({},e),{playCount:e.playCount+1}):e)),alert('\uD83C\uDF89 Congratulations! You completed "'.concat(k.title,'"!\nFinal Score: ').concat(a," points")))},2e3)},H=e=>{A(e),G({currentLevel:0,score:0,playerChoices:[]}),L("play")};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Z,{title:"AI Game Maker for Kids | Create Interactive Games | siteoptz.ai",description:"Kids create their own interactive AI games! Build adventure games, puzzles, and stories with AI assistance. Learn game design and programming concepts safely.",canonicalUrl:"https://siteoptz.ai/kids-ai/projects/ai-game-maker",keywords:["kids game maker","AI game creation children","interactive games for kids","educational game builder","safe game programming"]}),(0,r.jsx)("div",{className:"min-h-screen bg-gradient-to-br from-black via-gray-900 to-black py-16 lg:py-20",children:(0,r.jsxs)("div",{className:"max-w-7xl mx-auto px-6",children:[(0,r.jsxs)("div",{className:"text-center mb-12",children:[(0,r.jsx)("div",{className:"text-6xl mb-4",children:"\uD83C\uDFAE"}),(0,r.jsx)("h1",{className:"text-4xl md:text-6xl font-bold mb-6 bg-gradient-to-r from-yellow-400 via-red-500 to-purple-500 bg-clip-text text-transparent",children:"AI Game Maker"}),(0,r.jsxs)("p",{className:"text-xl md:text-2xl text-gray-300 mb-8 max-w-4xl mx-auto",children:["Create your own ",(0,r.jsx)("strong",{children:"interactive games"})," with AI! Build adventures, puzzles, and stories that respond to player choices using smart AI game logic."]}),(0,r.jsxs)("div",{className:"flex justify-center gap-4 flex-wrap mb-8",children:[(0,r.jsx)(m.Z,{type:"coppa"}),(0,r.jsx)(m.Z,{type:"safetyCertified"}),(0,r.jsx)(m.Z,{type:"teacherApproved"})]})]}),(0,r.jsx)("div",{className:"flex justify-center mb-8",children:(0,r.jsx)("div",{className:"bg-black border border-gray-800 rounded-lg p-1 flex",children:[{id:"create",name:"Create Game",icon:"\uD83C\uDFAE"},{id:"play",name:"Play Game",icon:"\uD83D\uDD79ï¸"},{id:"gallery",name:"My Games",icon:"\uD83C\uDFC6"}].map(e=>(0,r.jsxs)("button",{onClick:()=>L(e.id),className:"\n flex items-center gap-2 px-6 py-3 rounded-lg font-medium transition-all duration-200\n ".concat(E===e.id?"bg-purple-600 text-white":"text-gray-400 hover:text-white hover:bg-gray-800","\n "),children:[(0,r.jsx)("span",{children:e.icon}),e.name]},e.id))})}),"create"===E&&(0,r.jsxs)("div",{className:"grid lg:grid-cols-2 gap-8 mb-16",children:[(0,r.jsxs)("div",{className:"bg-black border border-gray-800 rounded-xl p-6",children:[(0,r.jsxs)("h2",{className:"text-2xl font-bold text-white mb-6 flex items-center gap-3",children:[(0,r.jsx)("span",{children:"\uD83C\uDFAE"}),"Design Your Game"]}),(0,r.jsxs)("div",{className:"mb-6",children:[(0,r.jsx)("label",{className:"block text-sm font-semibold text-gray-300 mb-3",children:"Game Title:"}),(0,r.jsx)("input",{type:"text",value:x,onChange:e=>h(e.target.value),placeholder:"e.g., The Magic Forest Adventure, Space Explorer Quest...",className:"w-full bg-gray-800 border border-gray-600 rounded-lg p-3 text-white placeholder-gray-400 focus:border-purple-500 focus:outline-none",maxLength:50})]}),(0,r.jsxs)("div",{className:"mb-6",children:[(0,r.jsx)("label",{className:"block text-sm font-semibold text-gray-300 mb-3",children:"Choose Game Type:"}),(0,r.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:M.map(e=>(0,r.jsxs)("button",{onClick:()=>p(e.id),className:"\n flex items-start gap-3 p-3 rounded-lg transition-all duration-200 text-left\n ".concat(u===e.id?"bg-purple-600 text-white border-2 border-purple-400":"bg-gray-800 text-gray-300 border-2 border-gray-700 hover:border-gray-600","\n "),children:[(0,r.jsx)("span",{className:"text-xl",children:e.emoji}),(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"font-medium text-sm",children:e.name}),(0,r.jsx)("div",{className:"text-xs opacity-80",children:e.description})]})]},e.id))})]}),(0,r.jsxs)("div",{className:"mb-6",children:[(0,r.jsx)("label",{className:"block text-sm font-semibold text-gray-300 mb-3",children:"Pick a Setting:"}),(0,r.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-3",children:[{id:"enchanted-forest",type:"setting",name:"Enchanted Forest",emoji:"\uD83C\uDF32",description:"A magical forest full of talking trees and hidden secrets"},{id:"crystal-cave",type:"setting",name:"Crystal Cave",emoji:"\uD83D\uDC8E",description:"A sparkling cave filled with colorful crystals and mysteries"},{id:"floating-islands",type:"setting",name:"Floating Islands",emoji:"âï¸",description:"Magical islands floating in the sky connected by rainbow bridges"},{id:"underwater-city",type:"setting",name:"Underwater City",emoji:"\uD83C\uDFD9ï¸",description:"A beautiful city beneath the ocean where mermaids live"},{id:"space-station",type:"setting",name:"Space Station",emoji:"\uD83D\uDEF0ï¸",description:"A high-tech station orbiting a colorful planet"},{id:"candy-kingdom",type:"setting",name:"Candy Kingdom",emoji:"\uD83C\uDF6D",description:"A sweet land where everything is made of delicious candy"}].map(e=>(0,r.jsxs)("button",{onClick:()=>v(e),className:"\n flex flex-col items-center p-3 rounded-lg transition-all duration-200\n ".concat((null==f?void 0:f.id)===e.id?"bg-blue-600 text-white border-2 border-blue-400":"bg-gray-800 text-gray-300 border-2 border-gray-700 hover:border-gray-600","\n "),children:[(0,r.jsx)("span",{className:"text-2xl mb-1",children:e.emoji}),(0,r.jsx)("span",{className:"text-xs font-medium text-center",children:e.name})]},e.id))})]}),(0,r.jsxs)("div",{className:"mb-6",children:[(0,r.jsx)("label",{className:"block text-sm font-semibold text-gray-300 mb-3",children:"Choose Characters (Select 1-3):"}),(0,r.jsx)("div",{className:"grid grid-cols-2 gap-2 mb-3",children:[{id:"brave-knight",name:"Brave Knight",emoji:"âï¸",type:"hero",abilities:["Courage","Sword Fighting","Protection"]},{id:"wise-wizard",name:"Wise Wizard",emoji:"\uD83E\uDDD9ââï¸",type:"hero",abilities:["Magic Spells","Wisdom","Healing"]},{id:"clever-fox",name:"Clever Fox",emoji:"\uD83E\uDD8A",type:"friend",abilities:["Cunning","Speed","Problem Solving"]},{id:"friendly-dragon",name:"Friendly Dragon",emoji:"\uD83D\uDC32",type:"friend",abilities:["Flying","Fire Breathing","Loyalty"]},{id:"robot-helper",name:"Robot Helper",emoji:"\uD83E\uDD16",type:"friend",abilities:["Computing","Strength","Analysis"]},{id:"magical-unicorn",name:"Magical Unicorn",emoji:"\uD83E\uDD84",type:"friend",abilities:["Healing Magic","Purity","Grace"]},{id:"sneaky-goblin",name:"Sneaky Goblin",emoji:"\uD83D\uDC79",type:"enemy",abilities:["Stealth","Trickery","Mischief"]},{id:"grumpy-troll",name:"Grumpy Troll",emoji:"\uD83D\uDC7A",type:"enemy",abilities:["Strength","Blocking","Stubbornness"]}].map(e=>(0,r.jsxs)("button",{onClick:()=>{b.find(t=>
1t.id===e.id)?j(t=>t.filter(t=>t.id!==e.id)):b.length<3&&j(t=>[...t,e])},className:"\n flex items-center gap-2 p-2 rounded-lg transition-all duration-200 text-left text-sm\n ".concat(b.find(t=>t.id===e.id)?"bg-green-600 text-white":"bg-gray-800 text-gray-300 hover:bg-gray-700","\n "),children:[(0,r.jsx)("span",{className:"text-lg",children:e.emoji}),(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"font-medium",children:e.name}),(0,r.jsx)("div",{className:"text-xs opacity-75",children:e.type})]})]},e.id))}),b.length>0&&(0,r.jsx)("div",{className:"flex flex-wrap gap-2",children:b.map(e=>(0,r.jsxs)("span",{className:"bg-green-900 text-green-300 px-2 py-1 rounded text-xs flex items-center gap-2",children:[e.emoji," ",e.name,(0,r.jsx)("button",{onClick:()=>j(t=>t.filter(t=>t.id!==e.id)),className:"text-green-300 hover:text-white",children:"\xd7"})]},e.id))})]}),(0,r.jsxs)("div",{className:"mb-6",children:[(0,r.jsx)("label",{className:"block text-sm font-semibold text-gray-300 mb-3",children:"Game Difficulty:"}),(0,r.jsx)("div",{className:"flex gap-3",children:["Easy","Medium","Hard"].map(e=>(0,r.jsx)("button",{onClick:()=>y(e),className:"\n px-4 py-2 rounded-lg font-medium transition-all duration-200\n ".concat(g===e?"bg-yellow-600 text-white":"bg-gray-800 text-gray-300 hover:bg-gray-700","\n "),children:e},e))}),(0,r.jsx)("p",{className:"text-xs text-gray-400 mt-2",children:"Easy: 3 levels ⢠Medium: 5 levels ⢠Hard: 7 levels"})]}),(0,r.jsxs)("div",{className:"mb-6",children:[(0,r.jsx)("label",{className:"block text-sm font-semibold text-gray-300 mb-3",children:"Game Description (Optional):"}),(0,r.jsx)("textarea",{value:N,onChange:e=>D(e.target.value),placeholder:"Describe what happens in your game...",className:"w-full bg-gray-800 border border-gray-600 rounded-lg p-3 text-white placeholder-gray-400 resize-none h-20 focus:border-purple-500 focus:outline-none",maxLength:200})]}),(0,r.jsx)("button",{onClick:T,disabled:w||!x.trim()||!u||!f||0===b.length,className:"\n w-full py-4 px-6 rounded-lg font-semibold text-lg transition-all duration-200\n ".concat(!w&&x.trim()&&u&&f&&0!==b.length?"bg-gradient-to-r from-purple-600 to-pink-600 text-white hover:from-purple-700 hover:to-pink-700 transform hover:scale-105":"bg-gray-600 text-gray-300 cursor-not-allowed","\n "),children:w?(0,r.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,r.jsx)("div",{className:"animate-spin rounded-full h-5 w-5 border-2 border-white border-t-transparent"}),"Creating Your Game..."]}):"\uD83C\uDFAE Generate AI Game!"}),"free"===o&&(0,r.jsxs)("div",{className:"mt-4 p-3 bg-gray-800 rounded-lg",children:[(0,r.jsxs)("div",{className:"flex justify-between items-center text-sm",children:[(0,r.jsx)("span",{className:"text-gray-300",children:"Games Created:"}),(0,r.jsxs)("span",{className:"text-white font-bold",children:[F.length,"/2"]})]}),(0,r.jsx)("div",{className:"w-full bg-gray-700 rounded-full h-2 mt-2",children:(0,r.jsx)("div",{className:"bg-gradient-to-r from-purple-500 to-pink-500 h-2 rounded-full transition-all duration-300",style:{width:"".concat(F.length/2*100,"%")}})}),F.length>=2&&(0,r.jsx)("p",{className:"text-yellow-400 text-xs mt-2",children:"\uD83D\uDD12 Upgrade to create unlimited games!"})]})]}),(0,r.jsxs)("div",{className:"bg-black border border-gray-800 rounded-xl p-6",children:[(0,r.jsxs)("h2",{className:"text-2xl font-bold text-white mb-6 flex items-center gap-3",children:[(0,r.jsx)("span",{children:"\uD83D\uDC41ï¸"}),"Game Preview"]}),x&&u&&f&&b.length>0?(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{className:"bg-gray-800 rounded-lg p-4",children:[(0,r.jsx)("h3",{className:"text-lg font-bold text-white mb-2",children:x}),(0,r.jsxs)("p",{className:"text-gray-400 text-sm mb-2",children:[null===(e=M.find(e=>e.id===u))||void 0===e?void 0:e.name," ⢠",g," Difficulty"]}),(0,r.jsx)("p",{className:"text-gray-300 text-sm",children:N||"An exciting ".concat(null===(t=M.find(e=>e.id===u))||void 0===t?void 0:t.name.toLowerCase()," where you explore ").concat(f.name,"!")})]}),(0,r.jsxs)("div",{className:"bg-blue-900 rounded-lg p-3",children:[(0,r.jsx)("h4",{className:"text-blue-200 font-medium text-sm mb-2",children:"Setting:"}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("span",{className:"text-xl",children:f.emoji}),(0,r.jsx)("span",{className:"text-white text-sm",children:f.name})]}),(0,r.jsx)("p",{className:"text-blue-200 text-xs mt-1",children:f.description})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-gray-400 font-medium text-sm mb-2",children:"Characters:"}),(0,r.jsx)("div",{className:"space-y-2",children:b.map(e=>(0,r.jsxs)("div",{className:"flex items-center gap-2 bg-gray-800 rounded-lg p-2",children:[(0,r.jsx)("span",{className:"text-lg",children:e.emoji}),(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"text-white text-sm font-medium",children:e.name}),(0,r.jsxs)("div",{className:"text-gray-400 text-xs",children:[e.type," ⢠",e.abilities.join(", ")
1]})]})]},e.id))})]})]}):(0,r.jsxs)("div",{className:"text-center py-12",children:[(0,r.jsx)("div",{className:"text-6xl mb-4",children:"\uD83C\uDFAE"}),(0,r.jsx)("h3",{className:"text-xl font-semibold text-white mb-2",children:"Your Game Preview"}),(0,r.jsx)("p",{className:"text-gray-300 mb-6",children:"Fill in the game details to see your creation come to life!"}),(0,r.jsxs)("div",{className:"bg-gray-800 rounded-lg p-4 text-left",children:[(0,r.jsx)("h4",{className:"text-sm font-bold text-purple-400 mb-2",children:"\uD83E\uDDE0 What You'll Learn:"}),(0,r.jsxs)("ul",{className:"text-sm text-gray-300 space-y-1",children:[(0,r.jsx)("li",{children:"⢠Game design and storytelling"}),(0,r.jsx)("li",{children:"⢠Character development and plot structure"}),(0,r.jsx)("li",{children:"⢠Interactive decision-making systems"}),(0,r.jsx)("li",{children:"⢠AI-powered game mechanics"}),(0,r.jsx)("li",{children:"⢠Creative problem solving and logic"})]})]})]})]})]}),"play"===E&&(0,r.jsx)("div",{className:"max-w-4xl mx-auto mb-16",children:k?(0,r.jsxs)("div",{className:"bg-black border border-gray-800 rounded-xl overflow-hidden",children:[(0,r.jsx)("div",{className:"bg-gradient-to-r from-purple-900 to-pink-900 p-6 border-b border-gray-700",children:(0,r.jsxs)("div",{className:"flex justify-between items-start",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"text-2xl font-bold text-white mb-1",children:k.title}),(0,r.jsxs)("p",{className:"text-gray-200 text-sm",children:[k.genre," ⢠Level ",z.currentLevel+1," of ",k.totalLevels]})]}),(0,r.jsxs)("div",{className:"text-right",children:[(0,r.jsxs)("div",{className:"text-white font-bold",children:["Score: ",z.score]}),(0,r.jsx)("div",{className:"text-gray-200 text-sm",children:k.difficulty})]})]})}),z.currentLevel<k.levels.length?(0,r.jsx)("div",{className:"p-6",children:(()=>{let e=k.levels[z.currentLevel];return(0,r.jsxs)("div",{className:"space-y-6",children:[(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)("h2",{className:"text-xl font-bold text-white mb-2",children:e.name}),(0,r.jsxs)("div",{className:"flex justify-center gap-2 mb-4",children:[(0,r.jsx)("span",{className:"text-2xl",children:e.setting.emoji}),e.characters.map(e=>(0,r.jsx)("span",{className:"text-2xl",children:e.emoji},e.id))]})]}),(0,r.jsx)("div",{className:"bg-gray-800 rounded-lg p-4",children:(0,r.jsx)("p",{className:"text-gray-200 leading-relaxed",children:e.story})}),e.challenges.map(e=>(0,r.jsxs)("div",{className:"bg-red-900 rounded-lg p-4",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3 mb-2",children:[(0,r.jsx)("span",{className:"text-2xl",children:e.emoji}),(0,r.jsx)("h4",{className:"text-red-200 font-bold",children:e.name})]}),(0,r.jsx)("p",{className:"text-red-100 text-sm",children:e.description})]},e.id)),(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsx)("h4",{className:"text-white font-bold",children:"What do you choose to do?"}),["Use your special abilities to overcome the challenge","Work together with your friends to find a solution","Look for clues and think carefully before acting","Try a creative and unexpected approach"].map((e,t)=>(0,r.jsxs)("button",{onClick:()=>B(e),className:"w-full bg-gray-800 hover:bg-blue-700 text-white p-3 rounded-lg text-left transition-colors duration-200",children:[t+1,". ",e]},t))]}),e.rewards.map(e=>(0,r.jsx)("div",{className:"bg-green-900 rounded-lg p-3",children:(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("span",{className:"text-lg",children:e.emoji}),(0,r.jsxs)("span",{className:"text-green-200 text-sm",children:["Possible Reward: ",e.name]})]})},e.id))]})})()}):(0,r.jsxs)("div",{className:"p-8 text-center",children:[(0,r.jsx)("div",{className:"text-6xl mb-4",children:"\uD83C\uDF89"}),(0,r.jsx)("h2",{className:"text-3xl font-bold text-white mb-2",children:"Congratulations!"}),(0,r.jsxs)("p",{className:"text-gray-300 mb-4",children:['You completed "',k.title,'"!']}),(0,r.jsxs)("p",{className:"text-yellow-400 font-bold mb-6",children:["Final Score: ",z.score," points"]}),(0,r.jsx)("button",{onClick:()=>G({currentLevel:0,score:0,playerChoices:[]}),className:"bg-gradient-to-r from-purple-600 to-pink-600 text-white px-6 py-3 rounded-lg font-semibold hover:from-purple-700 hover:to-pink-700 transition-colors",children:"\uD83D\uDD04 Play Again"})]})]}):(0,r.jsxs)("div",{className:"text-center py-16 bg-black border border-gray-800 rounded-xl",children:[(0,r.jsx)("div",{className:"text-6xl mb-4",children:"\uD83D\uDD79ï¸"}),(0,r.jsx)("h3",{className:"text-xl font-semibold text-white mb-2",children:"Ready to Play?"}),(0,r.jsx)("p",{className:"text-gray-300 mb-6",children:"Create a game first or load an existing one to start playing!"}),(0,r.jsx)("button",{onClick:()=>L("create"),className:"bg-gradient-to-r from-purple-600 to-pink-600 text-white px-6 py-3 rounded-lg font-semibold hover:from-purple-700 hover:to-pink-700 transition-colors",children:"\uD83C\uDFAE Create Your First Game"})]})}),"gallery"===E&&(0,r.jsxs)("div",{className:"mb-16",children:[(0,r.jsx)("h2",{className:"text-2xl font-bold text-white mb-6 text-center",children:"\uD83C\uDFC6 Your Game Collection"}),F.length>0?(0,r.jsx)("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:F.map(e=>(0,r.jsxs)("div",{className:"bg-black border border-gray-800 rounded-xl p-6 hover:transform hover:-translate-y-1 hover:shadow-lg hover:border-purple-500 transition-all duration-300",children:[(0,r.jsxs)("div",{className:"mb-4",children:[(0,r.jsx)("h3",{className:"text-lg font-bold text-white mb-1",children:e.title}),(0,r.jsx)("p",{className:"text-gray-400 text-sm",children:e.genre})]}),(0,r.jsx)("p",{className:"text-gray-300 text-sm mb-4 line-clamp-2",children:e.description}),(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsxs)("div",{className:"flex justify-between text-sm",children:[(0,r.jsx)("span",{className:"text-gray-400",children:"Levels:"}),(0,r.jsx)("span",{className:"text-white font-bold",children:e.totalLevels})]}),(0,r.jsxs)("div",{className:"flex justify-between text-sm",children:[(0,r.jsx)("span",{className:"text-gray-400",children:"Difficulty:"}),(0,r.jsx)("span",{className:"text-white font-bold",children:e.difficulty})]}),(0,r.jsxs)("div",{className:"flex justify-between text-sm",children:[(0,r.jsx)("span",{className:"text-gray-400",children:"Times Played:"}),(0,r.jsx)("span",{className:"text-white font-bold",children:e.playCount})]}),(0,r.jsx)("button",{onClick:()=>H(e),className:"w-full bg-gradient-to-r from-purple-600 to-pink-600 text-white py-2 px-4 roun
1ded-lg font-medium hover:from-purple-700 hover:to-pink-700 transition-colors",children:"\uD83D\uDD79ï¸ Play Game"})]})]},e.id))}):(0,r.jsxs)("div",{className:"text-center py-16",children:[(0,r.jsx)("div",{className:"text-6xl mb-4",children:"\uD83C\uDFAE"}),(0,r.jsx)("h3",{className:"text-xl font-semibold text-white mb-2",children:"No Games Yet"}),(0,r.jsx)("p",{className:"text-gray-300 mb-6",children:"Create your first game to see it appear here!"}),(0,r.jsx)("button",{onClick:()=>L("create"),className:"bg-gradient-to-r from-purple-600 to-pink-600 text-white px-6 py-3 rounded-lg font-semibold hover:from-purple-700 hover:to-pink-700 transition-colors",children:"\uD83C\uDFAE Create My First Game"})]})]}),(0,r.jsxs)("div",{className:"bg-gradient-to-r from-purple-900 to-pink-900 rounded-2xl p-8 text-white",children:[(0,r.jsxs)("div",{className:"text-center mb-8",children:[(0,r.jsx)("h2",{className:"text-3xl font-bold mb-4",children:"\uD83E\uDDE0 How AI Games Work"}),(0,r.jsx)("p",{className:"text-xl opacity-90",children:"Learn the exciting science behind AI-powered interactive games!"})]}),(0,r.jsxs)("div",{className:"grid md:grid-cols-3 gap-6",children:[(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)("div",{className:"text-4xl mb-3",children:"\uD83C\uDFAF"}),(0,r.jsx)("h3",{className:"text-lg font-bold mb-2",children:"1. Smart Choices"}),(0,r.jsx)("p",{className:"text-sm opacity-80",children:"AI analyzes your choices and creates different story paths based on what you decide."})]}),(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)("div",{className:"text-4xl mb-3",children:"\uD83D\uDD04"}),(0,r.jsx)("h3",{className:"text-lg font-bold mb-2",children:"2. Dynamic Stories"}),(0,r.jsx)("p",{className:"text-sm opacity-80",children:"The game changes based on your actions, creating unique adventures every time you play."})]}),(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)("div",{className:"text-4xl mb-3",children:"\uD83C\uDFC6"}),(0,r.jsx)("h3",{className:"text-lg font-bold mb-2",children:"3. Learning Fun"}),(0,r.jsx)("p",{className:"text-sm opacity-80",children:"Games teach problem-solving, creativity, and decision-making in an exciting way!"})]})]}),(0,r.jsx)("div",{className:"text-center mt-8",children:(0,r.jsx)(c(),{href:"/kids-ai/safety",className:"bg-white text-purple-900 px-6 py-3 rounded-lg font-semibold hover:bg-gray-100 transition-colors",children:"\uD83D\uDEE1ï¸ Learn About Safe Gaming with AI"})})]})]})})]})}},9008:function(e,t,a){e.exports=a(23867)}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=62408)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.