Block Blast Game Main Free oleh @pais-sad-boy

Proyek HTML buatan @pais-sad-boy, lolos kurasi Galeri Hyper Sheets. Lihat hasilnya dan kodenya, lalu coba buat versimu sendiri.

Oleh @pais-sad-boy · HTML

Buka halamannya

<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>Block Blast Pro Premium</title>
    <style>
        :root {
            --bg-gradient: radial-gradient(circle at top, #1e293b 0%, #0f172a 100%);
            --board-bg: rgba(30, 41, 59, 0.7);
            --cell-bg: rgba(15, 23, 42, 0.85);
            --cell-border: rgba(255, 255, 255, 0.05);
            --text-main: #f8fafc;
            --text-muted: #94a3b8;
            --accent: #38bdf8;
            --gold: #fbbf24;
            --danger: #f43f5e;
            --glass: rgba(255, 255, 255, 0.08);
            --glass-border: rgba(255, 255, 255, 0.15);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            user-select: none;
            -webkit-user-select: none;
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
        }

        body {
            background: var(--bg-gradient);
            color: var(--text-main);
            height: 100dvh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
            overflow: hidden;
            touch-action: none;
        }

        /* Header & Scoreboard */
        .header {
            width: 100%;
            max-width: 440px;
            padding: 16px 20px 8px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 10;
        }

        .status-badge {
            display: flex;
            align-items: center;
            gap: 6px;
            background: var(--glass);
            border: 1px solid var(--glass-border);
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            letter-spacing: 0.5px;
        }

        .status-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #10b981;
            box-shadow: 0 0 8px #10b981;
        }

        .status-dot.offline {
            background: var(--gold);
            box-shadow: 0 0 8px var(--gold);
        }

        .controls-top {
            display: flex;
            gap: 8px;
        }

        .icon-btn {
            background: var(--glass);
            border: 1px solid var(--glass-border);
            color: var(--text-main);
            width: 38px;
            height: 38px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 16px;
        }

        .icon-btn:active {
            transform: scale(0.92);
            background: rgba(255, 255, 255, 0.15);
        }

        /* Score Display */
        .score-panel {
            width: 100%;
            max-width: 440px;
            padding: 4px 20px 12px;
            display: flex;
            justify-content: space-around;
            align-items: center;
        }

        .score-box {
            background: var(--glass);
            border: 1px solid var(--glass-border);
            backdrop-filter: blur(12px);
            padding: 10px 24px;
            border-radius: 16px;
            text-align: center;
            min-width: 130px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
        }

        .score-label {
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            color: var(--text-muted);
            margin-bottom: 2px;
        }

        .score-value {
            font-size: 26px;
            font-weight: 800;
            background: linear-gradient(135deg, #fff, #cbd5e1);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .score-box.best .score-value {
            background: linear-gradient(135deg, #fde68a, #f59e0b);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        /* Game Board */
        .board-wrapper {
            position: relative;
            padding: 10px;
            background: var(--board-bg);
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(16px);
        }

        .grid {
            display: grid;
            grid-template-columns: repeat(8, 1fr);
            grid-template-rows: repeat(8, 1fr);
            gap: 4px;
            width: min(86vw, 360px);
            height: min(86vw, 360px);
        }

        .cell {
            background: var(--cell-bg);
            border-radius: 6px;
            border: 1px solid var(--cell-border);
            transition: transform 0.15s ease, background 0.15s ease;
            position: relative;
        }

        /* Block Colors & 3D Glossy Finish */
        .block-filled {
            border: none;
            box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.45),
                        inset 0 -3px 4px rgba(0, 0, 0, 0.35),
                        0 2px 6px rgba(0, 0, 0, 0.3);
        }

        .color-0 { background: linear-gradient(135deg, #38bdf8, #0284c7); } /* Cyan */
        .color-1 { background: linear-gradient(135deg, #f43f5e, #be123c); } /* Ruby */
        .color-2 { background: linear-gradient(135deg, #10b981, #047857); } /* Emerald */
        .color-3 { background: linear-gradient(135deg, #f59e0b, #b45309); } /* Amber */
        .color-4 { background: linear-gradient(135deg, #a855f7, #6b21a8); } /* Purple */
        .color-5 { background: linear-gradient(135deg, #ec4899, #9d174d); } /* Pink */

        /* Preview Ghost on Board */
        .cell.ghost {
            opacity: 0.4
…

Karya lain di Galeri