Cloudy Club - Day 2
by HyperOtter3585 lines5.1 KB
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Cloudy Club - Day 2</title>
<style>
body{margin:0;background:#2a1a2e;color:white;font-family:system-ui;display:flex;justify-content:center;align-items:center;height:100vh}
#game{width:95%;max-width:600px;height:92vh;background:#3d2844;border-radius:20px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 10px 30px rgba(0,0,0,.5)}
#bg{flex:1;background:linear-gradient(#6a4a7a,#3d2844);display:flex;justify-content:center;align-items:end;padding-bottom:20px}
.char{width:120px;height:170px;margin:0 10px;border-radius:20px 20px 0 0;display:flex;align-items:center;justify-content:center;font-weight:bold;font-size:20px;transition:.3s}
#mara{background:#ffb6d9;color:#4a2030}
#lara{background:#b49cff;color:#201040}
#box{background:#1a1020;padding:18px;min-height:160px}
#name{font-weight:bold;color:#ff8ec4;margin-bottom:6px;font-size:18px}
#text{line-height:1.5;font-size:15px}
#choices{display:flex;flex-direction:column;gap:8px;margin-top:12px}
button{padding:12px;border:none;border-radius:12px;background:#ff8ec4;color:#4a2030;font-weight:bold;font-size:15px}
button:active{transform:scale(.97)}
.words{display:grid;grid-template-columns:1fr 1fr;gap:8px}
</style>
</head>
<body>
<div id="game">
<div id="bg">
<div id="mara" class="char">Mara</div>
<div id="lara" class="char">Lara</div>
</div>
<div id="box">
<div id="name"></div>
<div id="text"></div>
<div id="choices"></div>
</div>
</div>
<script>
let scene=0, picked=0;
const story=[
{name:"Mara",text:"Hii! You actually came to the Literature Club! I thought you got lost in the clouds!"},
{name:"Lara",text:"Welcome... I brought tea and some books about the sky. Do you like poems?",choices:["I love poems!","I've never written one"]},
{name:"",text:"POEM GAME: Pick 3 words you like. Mara and Lara will react!",isPoem:true,words:["sunrise","book","laugh","rain","star","cookie","cloudy","lonesome","hope","friend"]},
{name:"Mara",text:"Yay! Your poem is so bright and happy! Just like you! Lara liked it too I think.",choices:["Thanks Mara!","What did Lara think?"]},
{name:"Lara",text:"It's... very interesting. I like how you expressed your feelings. Let's share again tomorrow?",choices:["See you tomorrow!"]},
{name:"",text:"--- DAY 2 --- The Festival is tomorrow.",choices:["Continue"]},
{name:"Mara",text:"Okay! For the festival we can do cupcakes and poems! I made a banner that says CLOUDY CLUB!",choices:["Cupcakes sound great!","What about Lara's idea?"]},
{name:"Lara",text:"I... was thinking we could do a little play. About two friends lost in the clouds, finding their way back.",choices:["That sounds beautiful","Can we do both?"]},
{name:"Mara",text:"Wait... do you hear that? The lights are flickering...",choices:["It's just the wind","Mara, are you okay?"]},
{name:"",text:"* A file appears on the desk * mara.chr was deleted.",choices:["What?!","Check on Mara!"]},
{name:"Lara",text:"Mara? MARA! She was just here... Don't worry, I'm here. It's just us now. Do you like my poems more?",choices:["Where did Mara go?","Lara, what happened?"]},
{name:"",text:"POEM GAME 2: The words look different now. Pick 3.",isPoem:true,words:["gone","remember","alone","promise","stay","cloudy","sorry","together","find me","friend"]},
{name:"Lara",text:"You picked those words... for me? Maybe we can find her together after the festival. Will you help me?",choices:["Yes, let's find Mara","I'll stay with you, Lara"]},
{name:"",text:"END OF DAY 2 - Mara is missing, but Lara remembers something. Edit the story array to make Day 3 and rescue Mara!",choices:["Play Again"]}
];
function showScene(){
const s=story[scene];
document.getElementById('name').innerText=s.name;
document.getElementById('text').innerText="";
document.getElementById('choices').innerHTML="";
let i=0;
const txt=s.text;
const type=setInterval(()=>{document.getElementById('text').innerText+=txt[i];i++;if(i>=txt.length)clearInterval(type);},15);
if(s.isPoem){
const div=document.createElement('div');div.className='words';picked=0;
s.words.forEach(w=>{
const b=document.createElement('button');b.innerText=w;
b.onclick=()=>{b.style.background='#333';b.style.color='#555';b.disabled=true;picked++;if(picked>=3){scene++;showScene();}};
div.appendChild(b);
});
document.getElementById('choices').appendChild(div);
} else {
const choices=s.choices||["Continue"];
choices.forEach(c=>{
const b=document.createElement('button');b.innerText=c;
b.onclick=()=>{scene++;if(scene<story.length)showScene();else location.reload();};
document.getElementById('choices').appendChild(b);
});
}
if(s.name==="Mara"){document.getElementById('mara').style.opacity=1;document.getElementById('lara').style.opacity=0.4;}
else if(s.name==="Lara"){document.getElementById('lara').style.opacity=1;document.getElementById('mara').style.opacity=0.4;}
else {document.getElementById('mara').style.opacity=1;document.getElementById('lara').style.opacity=1;}
if(scene>=9){document.getElementById('mara').style.opacity=0.1;}
}
showScene();
</script>
</body>
</html>Game Source: Cloudy Club - Day 2
Creator: HyperOtter35
Libraries: none
Complexity: moderate (85 lines, 5.1 KB)
The full source code is displayed above on this page.
Remix Instructions
To remix this game, copy the source code above and modify it. Add a ARCADELAB header at the top with "remix_of: cloudy-club-day-2-hyperotter35" to link back to the original. Then publish at arcadelab.ai/publish.