Struktur konfigurasi sesi lokal untuk penataan alur game pemula di 9sl.
{ } example.js{ } example.json
Salin kode
JavaScript
// Konfigurasi lokal alur pemilihan game pemula di 9sl
const beginnerFlowConfig = {
platform: "9sl" ,
domain: "9slgame.cc" ,
recommendedCategory: "Slot" ,
initialGames: [
{ id: "148" , name: "Dragon Hatch2" , type: "Slot" , beginnerFriendly: true },
{ id: "020" , name: "Hotpot" , type: "Permainan Meja & Slot" , beginnerFriendly: true },
{ id: "118" , name: "Lucky Piggy" , type: "Slot" , beginnerFriendly: false }
],
sessionSettings: {
audioDefault: true ,
showTutorialBanner: true ,
maxIntroViews: 3
}
};
function getStartingGame(config) {
return config.initialGames.find(g => g.beginnerFriendly) || config.initialGames[0 ];
}
console.log("Game awal terpilih:" , getStartingGame(beginnerFlowConfig).name); JSON
{
"platform" : "9sl" ,
"domain" : "9slgame.cc" ,
"recommendedCategory" : "Slot" ,
"initialGames" : [
{
"id" : "148" ,
"name" : "Dragon Hatch2" ,
"type" : "Slot" ,
"beginnerFriendly" : true
},
{
"id" : "020" ,
"name" : "Hotpot" ,
"type" : "Permainan Meja & Slot" ,
"beginnerFriendly" : true
},
{
"id" : "118" ,
"name" : "Lucky Piggy" ,
"type" : "Slot" ,
"beginnerFriendly" : false
}
],
"sessionSettings" : {
"audioDefault" : true ,
"showTutorialBanner" : true ,
"maxIntroViews" : 3
}
}