Cloudy Club - DDLC
by HyperOtter35114 lines7.1 KB
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<title>Cloudy Club - DDLC</title>
<style>
html,body{margin:0;height:100%;background:#1a1020;font-family:'Fredoka',system-ui;overflow:hidden;touch-action:none}
#game{width:100%;height:100%;position:relative;background:radial-gradient(at 50% 0%, #5a3a80 0%, #2a1840 50%, #1a1020 100%)}
#clubtable{position:absolute;bottom:18%;left:50%;transform:translateX(-50%);width:88%;height:20%;background:#4a2a5a;border:4px solid #1a1020;border-radius:20px}
#chars{position:absolute;inset:0;display:flex;align-items:end;justify-content:center;gap:1%;padding:0 1% 22%;pointer-events:none}
.char{width:24%;max-width:200px;opacity:0.4;transition:0.35s;transform:translateY(18px) scale(0.92);filter:drop-shadow(0 8px 10px rgba(0,0,0,0.5))}
.char.active{opacity:1;transform:translateY(0) scale(1.06);filter:drop-shadow(0 0 16px white);z-index:5}
.char img{width:100%;height:auto;display:block}
#box{position:absolute;bottom:2%;left:2%;right:2%;background:rgba(26,16,32,0.96);border:3px solid black;border-radius:18px;padding:12px 14px;color:white;min-height:95px;z-index:20;cursor:pointer}
#name{font-weight:900;font-size:15px;margin-bottom:4px}
#text{font-size:13.5px;line-height:1.4;min-height:38px}
#choices{position:absolute;top:46%;left:50%;transform:translate(-50%,-50%);display:none;flex-direction:column;gap:8px;z-index:30;width:88%;max-width:360px}
.bbtn{padding:12px;border-radius:12px;border:3px solid black;font-weight:900;font-size:13px;background:#fffab0;cursor:pointer}
#menu{position:absolute;inset:0;background:linear-gradient(#7a5a8a,#3d2844);z-index:50;display:flex;flex-direction:column;align-items:center;justify-content:center;color:white;gap:10px;padding:18px;text-align:center}
.card{background:#1a1020;border:3px solid black;border-radius:18px;padding:14px;width:92%;max-width:360px}
</style>
</head>
<body>
<div id="game">
<div id="clubtable"></div>
<div id="chars">
<div class="char" id="c-mara"><img src="mara.png"></div>
<div class="char" id="c-molly"><img src="molly.png"></div>
<div class="char" id="c-lara"><img src="lara.png"></div>
<div class="char" id="c-nova"><img src="nova.png"></div>
</div>
<div id="box" onclick="next()">
<div id="name"></div>
<div id="text"></div>
<div style="font-size:10px;opacity:0.5;margin-top:6px">tap to continue ▶</div>
</div>
<div id="choices"></div>
<div id="menu">
<div style="font-size:30px;font-weight:900">Cloudy Club</div>
<div style="font-size:12px;opacity:0.8">DDLC x Cloudy RPG - Your PNGs<br>Mara=Sayori • Lara=Yuri • Nova=Natsuki • Molly=Monika</div>
<div class="card">
<div style="font-size:11px;text-align:left;opacity:0.9">Write poems by picking words. Day 1-3 cute club. Day 4 Molly glitches like in Cloudy RPG - she DELETES others. No horror, just Cloudy-style deletion.</div>
<button class="bbtn" style="background:#8eff8e;margin-top:12px;width:100%" onclick="start()">ENTER THE CLUB</button>
</div>
</div>
</div>
<script>
let DAY=1,LINE=0;
const SCRIPT={
1:[
{name:'Molly',c:'molly',t:'Welcome to the Cloudy Literature Club! I am Molly, the president! Your Monika!'},
{name:'Mara',c:'mara',t:'Mara here! I brought cupcakes! I ate half on the way... hehe'},
{name:'Nova',c:'nova',t:'Tch! You are late again, Mara!'},
{name:'Lara',c:'lara',t:'...h-hello. I... I like your pen...'},
{name:'Molly',c:'molly',t:'Today we write poems! Pick words each girl would like!',act:'poem'},
],
2:[
{name:'Mara',c:'mara',t:'I loved your poem! It was so fluffy and bright, just like me!'},
{name:'Lara',c:'lara',t:'Yours... was dark and beautiful. It made my heart glitch...'},
{name:'Nova',c:'nova',t:'Hmph! Not bad. Your fire words were okay, I guess. Dont get cocky!'},
{name:'Molly',c:'molly',t:'Amazing! You are getting along with everyone! Write again tomorrow!',act:'poem'},
],
3:[
{name:'Mara',c:'mara',t:'Are you okay? You seem tired lately...'},
{name:'Lara',c:'lara',t:'The words... they are deleting themselves...'},
{name:'Nova',c:'nova',t:'Stop being weird! Everything is fine!'},
{name:'Molly',c:'molly',t:'Just look at me, okay?',act:'poem'},
],
4:[
{name:'Molly',c:'molly',t:'Its just us now. I deleted the others for you.'},
{name:'Molly',c:'molly',t:'Mara too clingy. Lara glitchy. Nova burned everything.'},
{name:'Molly',c:'molly',t:'But I can be all of them. I can be fluffy. I can be dark. I can be fire.'},
{name:'SYSTEM',c:'',t:'Choose your ending!',act:'choice'},
],
5:[
{name:'Mara',c:'mara',t:'You came back! We missed you!'},
{name:'Lara',c:'lara',t:'Thank you for not leaving us deleted.'},
{name:'Nova',c:'nova',t:'You idiot! Dont scare us like that! ...thank you.'},
{name:'Molly',c:'molly',t:'Hehe, okay. Lesson learned. Cloudy Club together forever!'},
]
};
const WORDS=[
{w:'fluffy',mara:3,lara:0,nova:1,molly:1},{w:'cupcake',mara:3,lara:0,nova:2,molly:1},{w:'sunshine',mara:3,lara:0,nova:0,molly:2},
{w:'glitch',mara:0,lara:3,nova:0,molly:2},{w:'delete',mara:0,lara:3,nova:0,molly:3},{w:'dark',mara:0,lara:3,nova:0,molly:1},
{w:'book',mara:0,lara:3,nova:0,molly:1},{w:'fire',mara:0,lara:0,nova:3,molly:1},{w:'blue',mara:0,lara:1,nova:3,molly:1},
{w:'dash',mara:1,lara:0,nova:3,molly:0},{w:'president',mara:0,lara:0,nova:0,molly:3},{w:'perfect',mara:0,lara:1,nova:0,molly:3},
{w:'cloudy',mara:2,lara:1,nova:2,molly:2},{w:'poem',mara:1,lara:2,nova:1,molly:2},
];
function start(){document.getElementById('menu').style.display='none';DAY=1;LINE=0;next();}
function hl(c){document.querySelectorAll('.char').forEach(e=>e.classList.remove('active'));if(c){let el=document.getElementById('c-'+c);if(el)el.classList.add('active');}}
function next(){
let s=SCRIPT[DAY];if(!s||LINE>=s.length){if(DAY<4){DAY++;LINE=0;next();}return;}
let e=s[LINE];document.getElementById('name').innerText=e.name;document.getElementById('text').innerText=e.t;hl(e.c);
if(e.act==='poem')setTimeout(showPoem,400); else if(e.act==='choice')setTimeout(showChoice,400);
LINE++;
}
function showPoem(){
let ch=document.getElementById('choices');ch.style.display='flex';ch.innerHTML='<div style="color:white;font-weight:900;text-align:center">Pick 6 words!</div>';
let shuffled=[...WORDS].sort(()=>0.5-Math.random()).slice(0,10); let picked=0;
shuffled.forEach(o=>{
let b=document.createElement('button');b.className='bbtn';b.innerText=o.w;
b.onclick=()=>{if(b.dataset.sel)return;b.dataset.sel=1;b.style.background='#8e6eff';b.style.color='white';picked++;if(picked>=6){ch.style.display='none';next();}};
ch.appendChild(b);
});
}
function showChoice(){
let ch=document.getElementById('choices');ch.style.display='flex';ch.innerHTML='';
let b1=document.createElement('button');b1.className='bbtn';b1.style.background='#222';b1.style.color='#ff6ec7';b1.innerText='Stay with Molly forever';b1.onclick=()=>{ch.style.display='none';document.getElementById('name').innerText='Molly';document.getElementById('text').innerText='...Thank you. Just us, forever. (Refresh to restart)';hl('molly');};
let b2=document.createElement('button');b2.className='bbtn';b2.style.background='#8eff8e';b2.innerText='Bring everyone back!';b2.onclick=()=>{ch.style.display='none';DAY=5;LINE=0;next();};
ch.appendChild(b1);ch.appendChild(b2);
}
</script>
</body>
</html>Game Source: Cloudy Club - DDLC
Creator: HyperOtter35
Libraries: none
Complexity: moderate (114 lines, 7.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-ddlc-hyperotter35" to link back to the original. Then publish at arcadelab.ai/publish.