Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

36.1 KB
Raw Blame
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <title>Estella — A fast 2D game engine powered by WebAssembly and ECS</title>
  <meta name="description" content="Estella is a 2D game engine with a TypeScript SDK and a C++/WebAssembly backend. Build games for the web, desktop, WeChat MiniGames, playable ads and native Android / iOS, with a visual editor." />
  <link rel="canonical" href="https://estellaengine.com/" />
  <link rel="icon" href="/favicon.svg" type="image/svg+xml" />
  <meta property="og:type" content="website" />
  <meta property="og:title" content="Estella — A fast 2D game engine" />
  <meta property="og:description" content="A TypeScript SDK on a C++/WebAssembly backend. Web, desktop, WeChat MiniGames, playable ads and native Android / iOS, with a visual editor." />
  <meta property="og:image" content="https://estellaengine.com/og-image.png" />
  <meta property="og:url" content="https://estellaengine.com/" />
  <meta name="twitter:card" content="summary_large_image" />
  <meta name="theme-color" content="#0a0a0c" />

  <link rel="preload" href="/fonts/inter-latin-400-normal.woff2" as="font" type="font/woff2" crossorigin />
  <link rel="preload" href="/fonts/inter-latin-700-normal.woff2" as="font" type="font/woff2" crossorigin />
  <!-- The mirror answers the version chips; warming the connection costs one round trip. -->
  <link rel="preconnect" href="https://dl.estella.games" crossorigin />

  <style>
    /* ═══════════════════════════════════════════════════════════════════════
       Tokens — the editor's "azure" line (desktop/src/theme/tokens.css),
       carried onto the web so the site and the tool people install read as one
       product: near-black neutral slate, one restrained azure, the iconic
       orange kept for what it means in the editor (selection / attention),
       Inter for prose and JetBrains Mono reserved for live data.
       Only the type and radius scales are re-pitched for page-scale reading.
       ═══════════════════════════════════════════════════════════════════════ */
    :root {
      /* surfaces */
      --srf-0: #0a0a0c;
      --srf-1: #121215;
      --srf-2: #19191d;
      --srf-3: #212127;
      --srf-4: #2a2a31;

      /* structure */
      --line: rgba(255, 255, 255, 0.085);
      --line-soft: rgba(255, 255, 255, 0.045);
      --line-strong: rgba(255, 255, 255, 0.14);

      /* text ramp */
      --text-hi: #e8e9eb;
      --text: #cbccd0;
      --text-dim: #9a9ba1;
      --text-faint: #696a71;

      /* accent: one azure */
      --star: #2f88d6;
      --star-hi: #4aa6ec;
      --star-deep: #20689f;
      --star-dim: rgba(47, 136, 214, 0.18);
      --star-line: rgba(47, 136, 214, 0.55);
      --on-accent: #f3f7fc;
      --sel: #f0871f; /* the editor's selection orange — attention only */

      /* type */
      --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
      --font-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
      --fs-xs: 12px;
      --fs-sm: 13px;
      --fs-md: 15px;
      --fs-lg: 17px;
      --fs-xl: 20px;
      --fs-2xl: 28px;
      --fs-3xl: clamp(38px, 5.4vw, 60px);

      /* geometry: the editor's tight ladder, one step added for page scale */
      --r-sm: 3px;
      --r-md: 4px;
      --r-lg: 6px;
      --r-xl: 10px;
      --u: 4px;

      /* motion */
      --e-out: cubic-bezier(0.2, 0, 0, 1);
      --t-fast: 100ms;
      --t: 160ms;

      /* elevation: tinted toward the accent, never pure black */
      --shadow-2: 0 4px 12px rgba(0, 0, 0, 0.45);
      --shadow-3: 0 14px 34px rgba(0, 0, 0, 0.55), 0 3px 8px rgba(0, 0, 0, 0.4);
      --shadow-hero: 0 40px 90px -40px rgba(47, 136, 214, 0.4), 0 8px 30px rgba(0, 0, 0, 0.55);
    }

    @font-face {
      font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
      src: url('/fonts/inter-latin-400-normal.woff2') format('woff2');
    }
    @font-face {
      font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
      src: url('/fonts/inter-latin-600-normal.woff2') format('woff2');
    }
    @font-face {
      font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap;
      src: url('/fonts/inter-latin-700-normal.woff2') format('woff2');
    }
    @font-face {
      font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap;
      src: url('/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      background: var(--srf-0);
      color: var(--text);
      font: 400 var(--fs-md)/1.65 var(--font-ui);
      letter-spacing: -0.005em;
      -webkit-font-smoothing: antialiased;
    }
    a { color: inherit; text-decoration: none; }
    h1, h2, h3 { color: var(--text-hi); letter-spacing: -0.025em; }
    code, .mono { font-family: var(--font-mono); font-size: 0.92em; }

    :focus-visible {
      outline: 2px solid var(--star-hi);
      outline-offset: 2px;
      border-radius: var(--r-sm);
    }
    .skip {
      position: absolute; left: -9999px; top: 8px; z-index: 100;
      padding: 10px 16px; border-radius: var(--r-md);
      background: var(--srf-3); color: var(--text-hi);
    }
    .skip:focus { left: 16px; }

    .wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

    /* — the mark, everywhere it appears — */
    .mark { display: block; flex: none; }
    .brand {
      display: inline-flex; align-items: center; gap: 10px;
      font-weight: 700; font-size: var(--fs-lg); color: var(--text-hi);
      letter-spacing: -0.02em;
    }

    /* ── header ─────────────────────────────────────────────────────────── */
    header {
      position: sticky; top: 0; z-index: 20;
      background: color-mix(in srgb, var(--srf-0) 82%, transparent);
      backdrop-filter: blur(12px) saturate(140%);
      border-bottom: 1px solid var(--line-soft);
    }
    .nav { display: flex; align-items: center; gap: 8px; height: 60px; }
    .nav .spacer { flex: 1; }
    .nav .link {
      padding: 8px 10px; border-radius: var(--r-md);
      color: var(--text-dim); font-size: var(--fs-sm); font-weight: 500;
      transition: color var(--t-fast) var(--e-out), background var(--t-fast) var(--e-out);
    }
    .nav .link:hover { color: var(--text-hi); background: rgba(255, 255, 255, 0.05); }
    @media (max-width: 720px) { .nav .link.opt { display: none; } }

    /* ── buttons ────────────────────────────────────────────────────────── */
    .btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 8px;
      min-height: 44px; padding: 11px 18px;
      border: 1px solid var(--line); border-radius: var(--r-lg);
      background: var(--srf-3); color: var(--text-hi);
      font: 600 var(--fs-sm)/1 var(--font-ui); letter-spacing: 0;
      cursor: pointer;
      transition: background var(--t-fast) var(--e-out), border-color var(--t-fast) var(--e-out),
                  transform var(--t-fast) var(--e-out);
    }
    .btn:hover { background: var(--srf-4); border-color: var(--line-strong); }
    .btn:active { transform: translateY(1px); }
    .btn.primary {
      background: var(--star); border-color: transparent; color: var(--on-accent);
      box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset, 0 6px 18px -8px rgba(47, 136, 214, 0.9);
    }
    .btn.primary:hover { background: var(--star-hi); }
    .btn.primary:active { background: var(--star-deep); }
    .btn.sm { min-height: 34px; padding: 8px 12px; font-size: var(--fs-xs); }
    .btn svg { flex: none; }

    /* ── hero ───────────────────────────────────────────────────────────── */
    .hero { position: relative; padding: 88px 0 0; text-align: center; overflow: hidden; }
    /* one soft azure bloom behind the mark — the splash screen's glow, quieted */
    .hero::before {
      content: ''; position: absolute; inset: -220px 0 auto; height: 620px;
      background: radial-gradient(48% 46% at 50% 42%, rgba(47, 136, 214, 0.2), transparent 70%);
      pointer-events: none;
    }
    .hero > * { position: relative; }
    .hero .mark-lg { margin: 0 auto 26px; filter: drop-shadow(0 10px 30px rgba(47, 136, 214, 0.45)); }

    .chip {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 5px 12px 5px 8px; margin-bottom: 22px;
      border: 1px solid var(--line); border-radius: 999px;
      background: var(--srf-2);
      font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-dim);
      transition: border-color var(--t-fast) var(--e-out), color var(--t-fast) var(--e-out);
    }
    a.chip:hover { border-color: var(--star-line); color: var(--text-hi); }
    .chip .dot {
      width: 6px; height: 6px; border-radius: 50%; background: var(--star-hi);
      box-shadow: 0 0 0 3px var(--star-dim);
    }
    .chip .sep { color: var(--text-faint); }

    .hero h1 {
      font-size: var(--fs-3xl); line-height: 1.08; font-weight: 700;
      margin: 0 auto 20px; max-width: 22ch;
    }
    /* The line break is authored, not left to the measure: the headline is two
       statements and reads as one only when they land on separate lines. */
    .hero h1 em { font-style: normal; color: var(--star-hi); }
    .hero .lead {
      max-width: 62ch; margin: 0 auto 32px;
      font-size: var(--fs-xl); line-height: 1.55; color: var(--text-dim);
    }
    .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
    .cta .btn { padding-inline: 22px; font-size: var(--fs-md); min-height: 48px; }
    .fine {
      margin: 18px 0 0; color: var(--text-faint); font-size: var(--fs-sm);
      display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
    }
    .fine .sep { opacity: 0.5; }

    .shot { margin: 60px auto 0; max-width: 1000px; }
    .shot figure { margin: 0; }
    .shot img, .shot video {
      width: 100%; height: auto; display: block;
      border: 1px solid var(--line); border-radius: var(--r-xl);
      box-shadow: var(--shadow-hero);
    }
    .shot figcaption {
      margin-top: 14px; color: var(--text-faint); font-size: var(--fs-sm);
    }

    /* ── section frame ──────────────────────────────────────────────────── */
    section { padding: 104px 0; }
    /* Sections that continue the one above rather than opening a new subject. */
    section.tight { padding-top: 68px; }
    .head { text-align: center; margin-bottom: 44px; }
    .head .eyebrow {
      display: block; margin-bottom: 12px;
      font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.08em;
      text-transform: uppercase; color: var(--star-hi);
    }
    .head h2 { font-size: var(--fs-2xl); margin: 0 0 10px; }
    .head p { max-width: 60ch; margin: 0 auto; color: var(--text-dim); }

    /* ── download ───────────────────────────────────────────────────────── */
    /* The header is sticky, so an anchor that lands flush with the top lands
       underneath it. */
    #download { background: var(--srf-1); border-block: 1px solid var(--line-soft); scroll-margin-top: 60px; }
    .dl-grid {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 16px; max-width: 800px; margin: 0 auto;
    }
    .dl-card {
      position: relative; display: flex; flex-direction: column; gap: 4px;
      padding: 26px 24px 24px;
      border: 1px solid var(--line); border-radius: var(--r-xl);
      background: var(--srf-2);
      transition: border-color var(--t) var(--e-out), background var(--t) var(--e-out);
    }
    .dl-card:hover { border-color: var(--line-strong); }
    .dl-card[data-recommended] {
      border-color: var(--star-line);
      background: linear-gradient(180deg, var(--star-dim), transparent 62%), var(--srf-2);
    }
    .dl-card .os { display: flex; align-items: center; gap: 10px; color: var(--text-hi); }
    .dl-card .os svg { fill: currentColor; opacity: 0.9; }
    .dl-card h3 { margin: 0; font-size: var(--fs-lg); font-weight: 600; }
    .dl-card .req { margin: 2px 0 16px; color: var(--text-dim); font-size: var(--fs-sm); }
    .dl-card .btn { width: 100%; }
    .dl-card .meta {
      margin-top: 12px; min-height: 18px;
      font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-faint);
      overflow-wrap: anywhere;
    }
    /* The separator belongs to the size, so a page whose mirror never answered
       does not show a dot with nothing in front of it. */
    .dl-card .meta .size:not(:empty)::after { content: ' · '; color: var(--text-faint); }
    .badge-you {
      position: absolute; top: -10px; left: 24px;
      padding: 3px 9px; border-radius: 999px;
      background: var(--star); color: var(--on-accent);
      font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em;
      text-transform: uppercase;
    }
    .dl-foot {
      max-width: 800px; margin: 26px auto 0; text-align: center;
      color: var(--text-faint); font-size: var(--fs-sm);
    }
    .dl-foot a { color: var(--text-dim); border-bottom: 1px solid var(--line); }
    .dl-foot a:hover { color: var(--star-hi); border-color: var(--star-line); }
    .dl-foot p { margin: 8px 0 0; }
    .dl-foot .warnmark { color: var(--sel); }

    /* ── features ───────────────────────────────────────────────────────── */
    .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
    .card {
      padding: 24px 22px; border: 1px solid var(--line); border-radius: var(--r-xl);
      background: var(--srf-2);
      transition: border-color var(--t) var(--e-out), transform var(--t) var(--e-out);
    }
    .card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
    .card .ico {
      display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 16px;
      border: 1px solid var(--star-line); border-radius: var(--r-lg);
      background: var(--star-dim); color: var(--star-hi);
    }
    .card h3 { margin: 0 0 8px; font-size: var(--fs-lg); font-weight: 600; }
    .card p { margin: 0; color: var(--text-dim); font-size: var(--fs-sm); line-height: 1.6; }
    .card code { color: var(--text); background: var(--srf-3); padding: 1px 5px; border-radius: var(--r-sm); }

    /* ── targets strip ──────────────────────────────────────────────────── */
    .targets {
      display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
      max-width: 780px; margin: 0 auto;
    }
    .target {
      padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px;
      background: var(--srf-2); color: var(--text-dim); font-size: var(--fs-sm);
    }
    .target b { color: var(--text-hi); font-weight: 600; }

    /* ── code ───────────────────────────────────────────────────────────── */
    .code-shell {
      max-width: 760px; margin: 0 auto;
      border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden;
      background: var(--srf-2); box-shadow: var(--shadow-3);
    }
    .code-bar {
      display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
      background: var(--srf-3); border-bottom: 1px solid var(--line-soft);
      font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-faint);
    }
    .code-bar .tab {
      padding: 4px 10px; border-radius: var(--r-sm);
      background: var(--srf-1); color: var(--text-dim);
    }
    pre {
      margin: 0; padding: 22px; overflow-x: auto;
      font: 400 13.5px/1.75 var(--font-mono); color: var(--text);
      background: var(--srf-1);
    }
    .k { color: #b272d6; } .f { color: var(--star-hi); } .s { color: #86c98f; }
    .n { color: var(--sel); } .c { color: var(--text-faint); }

    /* ── footer ─────────────────────────────────────────────────────────── */
    footer { border-top: 1px solid var(--line-soft); background: var(--srf-1); padding: 44px 0; }
    .foot { display: flex; align-items: center; gap: 20px 26px; flex-wrap: wrap; }
    .foot .spacer { flex: 1; }
    .foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
    .foot a { color: var(--text-dim); font-size: var(--fs-sm); }
    .foot a:hover { color: var(--star-hi); }
    .foot .legal { width: 100%; color: var(--text-faint); font-size: var(--fs-xs); }

    @media (max-width: 640px) {
      section { padding: 72px 0; }
      .hero { padding-top: 56px; }
      .cta .btn { width: 100%; }
    }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    }
  </style>
</head>
<body>
  <a class="skip" href="#main">Skip to content</a>

  <header>
    <div class="wrap nav">
      <a class="brand" href="/">
        <svg class="mark" width="24" height="24" viewBox="0 0 100 100" aria-hidden="true">
          <path d="M50 50 L42 42 L50 6 L58 42 Z" fill="#4aa6ec" />
          <path d="M50 50 L58 42 L94 50 L58 58 Z" fill="#2f88d6" />
          <path d="M50 50 L58 58 L50 94 L42 58 Z" fill="#1c5988" />
          <path d="M50 50 L42 58 L6 50 L42 42 Z" fill="#2c7cc0" />
        </svg>
        Estella
      </a>
      <div class="spacer"></div>
      <a class="link" href="/docs/getting-started/introduction/">Docs</a>
      <a class="link opt" href="/docs/api-ts/readme/">API</a>
      <a class="link opt" href="/docs/zh-cn/getting-started/introduction/" lang="zh-CN">中文</a>
      <a class="link" href="https://github.com/esengine/estella">GitHub</a>
      <a class="btn sm primary" href="#download">Download</a>
    </div>
  </header>

  <main id="main">
    <!-- ── hero ─────────────────────────────────────────────────────────── -->
    <section class="hero wrap">
      <svg class="mark mark-lg" width="96" height="96" viewBox="0 0 100 100" role="img" aria-label="Estella">
        <defs>
          <filter id="halo" x="-40%" y="-40%" width="180%" height="180%">
            <feGaussianBlur stdDeviation="4.2" />
          </filter>
        </defs>
        <path d="M50 6 L58 42 L94 50 L58 58 L50 94 L42 58 L6 50 L42 42 Z" fill="#2f88d6" opacity="0.5" filter="url(#halo)" />
        <path d="M50 50 L42 42 L50 6 L58 42 Z" fill="#4aa6ec" />
        <path d="M50 50 L58 42 L94 50 L58 58 Z" fill="#2f88d6" />
        <path d="M50 50 L58 58 L50 94 L42 58 Z" fill="#1c5988" />
        <path d="M50 50 L42 58 L6 50 L42 42 Z" fill="#2c7cc0" />
        <g stroke="#0a1826" stroke-width="0.7" stroke-linecap="round" opacity="0.5">
          <line x1="50" y1="50" x2="42" y2="42" /><line x1="50" y1="50" x2="58" y2="42" />
          <line x1="50" y1="50" x2="58" y2="58" /><line x1="50" y1="50" x2="42" y2="58" />
        </g>
        <path d="M42 42 L50 50 L58 42" fill="none" stroke="#9fd2f7" stroke-width="0.7" opacity="0.6" />
      </svg>

      <!-- The version token below is substituted when the site is merged
           (docs.yml, build.sh, build.ps1) from desktop/package.json, the one
           place the app version lives. The mirror refreshes it at runtime when
           it is allowed to answer. -->
      <a class="chip" id="release-chip" href="https://github.com/esengine/estella/releases/tag/v__ESTELLA_VERSION__">
        <span class="dot" aria-hidden="true"></span>
        <span id="release-label">v__ESTELLA_VERSION__</span>
        <span class="sep">·</span>
        <span>changelog</span>
      </a>

      <h1>A fast 2D game engine<br />for <em>everywhere you ship</em></h1>
      <p class="lead">
        Estella pairs a first-class TypeScript SDK with a C++/WebAssembly rendering
        core, and ships a visual editor. One project builds for the web, the desktop,
        WeChat MiniGames, playable ads, and native Android / iOS.
      </p>

      <div class="cta">
        <a class="btn primary" id="hero-download" href="#download">
          <svg width="15" height="15" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true">
            <path d="M7.25 1v8.19L4.53 6.47 3.47 7.53 8 12.06l4.53-4.53-1.06-1.06-2.72 2.72V1h-1.5ZM2.5 13v1.5h11V13h-11Z" />
          </svg>
          <span id="hero-download-label">Download the editor</span>
        </a>
        <a class="btn" href="/docs/getting-started/quick-start/">Quick start →</a>
      </div>
      <p class="fine">
        <span>Free and open source</span><span class="sep">·</span>
        <span>Apache-2.0</span><span class="sep">·</span>
        <span>Windows &amp; macOS</span>
      </p>

      <div class="shot">
        <figure>
          <!-- A loop of the same street through a whole day, drawn by the engine one frame at a time:
               dawn, morning mist, a sunlit noon, rain with puddles at dusk, a night of lamps, dawn again. The still is the poster, and what
               a visitor who prefers no motion is left with. -->
          <video id="hero-loop" width="1280" height="720" autoplay muted loop playsinline preload="metadata"
                 poster="/hero-5df1f015.png"
                 aria-label="A Paris street corner rendered in real time by the Estella engine, through a whole day: morning mist, a sunlit noon with long shadows, rain with wet cobbles and puddles that mirror the scene, and a night lit by lamps">
            <source src="/day-1b5a4973.webm" type="video/webm" />
            <source src="/day-cadfc12e.mp4" type="video/mp4" />
            <img src="/hero-5df1f015.png" width="1742" height="980"
                 alt="A Paris street corner in daylight, rendered in real time by the Estella engine: a cafe, a scooter, cobbles and sun shadows" />
          </video>
          <figcaption>Amazon Lumberyard Bistro, drawn by Estella through a whole day — dawn mist, a sunlit noon, rain with wet ground and puddles at dusk, then a night of lamps. Sun and sky, baked bounce light, reflections, fog, auto exposure and the Neutral output transform, all engine effects. Scene © Amazon Lumberyard, <a href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>, modified.</figcaption>
        </figure>
      </div>
    </section>

    <!-- ── download ─────────────────────────────────────────────────────── -->
    <section id="download">
      <div class="wrap">
        <div class="head">
          <span class="eyebrow">Download</span>
          <h2>Get the editor</h2>
          <p>
            Served from the project's Cloudflare mirror — the same one the editor's
            update check reads, and measured at 3.0 MB/s against GitHub's 2.0 from
            Shanghai. Every release is on GitHub too.
          </p>
        </div>

        <div class="dl-grid">
          <div class="dl-card" id="card-win">
            <div class="os">
              <svg width="18" height="18" viewBox="0 0 16 16" aria-hidden="true"><path d="M0 2.25 6.5 1.36v6.02H0V2.25Zm7.3-1L16 0v7.38H7.3V1.25ZM0 8.62h6.5v6.02L0 13.75V8.62Zm7.3 0H16V16l-8.7-1.21V8.62Z"/></svg>
              <h3>Windows</h3>
            </div>
            <p class="req">Windows 10 / 11 · x64 · installer</p>
            <a class="btn primary" id="btn-win" href="https://dl.estella.games/latest/Estella-Editor-Setup.exe" download>
              Download for Windows
            </a>
            <div class="meta" id="meta-win"><span class="size"></span><span class="name">Estella-Editor-Setup-__ESTELLA_VERSION__.exe</span></div>
          </div>

          <div class="dl-card" id="card-mac">
            <div class="os">
              <svg width="18" height="18" viewBox="0 0 16 16" aria-hidden="true"><path d="M11.18 8.4c-.02-1.63 1.33-2.42 1.39-2.46-.76-1.11-1.94-1.26-2.36-1.28-1-.1-1.96.59-2.47.59-.51 0-1.3-.58-2.13-.56-1.1.02-2.11.64-2.68 1.62-1.14 1.98-.29 4.92.82 6.53.54.79 1.19 1.67 2.04 1.64.82-.03 1.13-.53 2.12-.53s1.27.53 2.13.51c.88-.01 1.44-.8 1.98-1.59.62-.91.88-1.79.89-1.84-.02-.01-1.71-.66-1.73-2.63ZM9.6 3.6c.45-.55.76-1.31.67-2.07-.65.03-1.44.43-1.9.98-.42.48-.79 1.26-.69 2 .73.06 1.47-.37 1.92-.91Z"/></svg>
              <h3>macOS</h3>
            </div>
            <p class="req">macOS 12+ · Apple silicon · disk image</p>
            <a class="btn primary" id="btn-mac" href="https://dl.estella.games/latest/Estella-Editor-arm64.dmg" download>
              Download for macOS
            </a>
            <div class="meta" id="meta-mac"><span class="size"></span><span class="name">Estella-Editor-__ESTELLA_VERSION__-arm64.dmg</span></div>
          </div>
        </div>

        <div class="dl-foot">
          <p>
            Intel Macs and Linux: <a href="https://github.com/esengine/estella/blob/master/CONTRIBUTING.md">build from source</a>.
            Every build, checksum and release note lives on the
            <a href="https://github.com/esengine/estella/releases">releases page</a>.
          </p>
          <p>
            <span class="warnmark" aria-hidden="true">▲</span>
            Installers are unsigned for now, so Windows SmartScreen and macOS Gatekeeper
            will ask before the first launch.
          </p>
        </div>
      </div>
    </section>

    <!-- ── features ─────────────────────────────────────────────────────── -->
    <section class="wrap">
      <div class="head">
        <span class="eyebrow">Why Estella</span>
        <h2>An engine that behaves like an instrument</h2>
        <p>A native rendering core, a typed SDK, and an editor that edits your project — not a pile of JSON.</p>
      </div>
      <div class="grid">
        <div class="card">
          <div class="ico"><svg width="17" height="17" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M9.2 1 3 9h3.6l-.8 6L13 7H9.4l-.2-6Z"/></svg></div>
          <h3>Fast by construction</h3>
          <p>A C++ rendering pipeline compiled to WebAssembly, batching draws behind one command producer — not interpreted JavaScript.</p>
        </div>
        <div class="card">
          <div class="ico"><svg width="17" height="17" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M5.7 2.3 4.6 1.2 0 5.8v1.4l4.6 4.6 1.1-1.1L1.8 6.5l3.9-4.2Zm4.6 0 1.1-1.1 4.6 4.6v1.4l-4.6 4.6-1.1-1.1 3.9-4.2-3.9-4.2Z"/></svg></div>
          <h3>Type-safe SDK</h3>
          <p><code>defineComponent</code>, <code>defineSystem</code>, <code>Query</code>, <code>Commands</code>, <code>Res</code> — the compiler knows what a system reads and writes.</p>
        </div>
        <div class="card">
          <div class="ico"><svg width="17" height="17" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M2 2h5v5H2V2Zm7 0h5v5H9V2ZM2 9h5v5H2V9Zm7 0h5v5H9V9Z"/></svg></div>
          <h3>Data-oriented core</h3>
          <p>An ECS with one cache-friendly component store, change detection, and systems scheduled over the archetypes that match.</p>
        </div>
        <div class="card">
          <div class="ico"><svg width="17" height="17" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M1 2h14v9H1V2Zm1.5 1.5v6h11v-6h-11ZM5 13h6v1.5H5V13Z"/></svg></div>
          <h3>A real editor</h3>
          <p>Scene graph, inspector, tilemaps, particles, animation, prefabs, visual event binding, and plugins that extend all of it.</p>
        </div>
        <div class="card">
          <div class="ico"><svg width="17" height="17" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1Zm4.9 6.2h-2.3a10.8 10.8 0 0 0-1-4 5.5 5.5 0 0 1 3.3 4ZM8 2.6c.6.8 1.1 2.4 1.2 4.6H6.8c.1-2.2.6-3.8 1.2-4.6ZM3.1 7.2a5.5 5.5 0 0 1 3.3-4 10.8 10.8 0 0 0-1 4H3.1Zm0 1.6h2.3c.1 1.5.4 2.9 1 4a5.5 5.5 0 0 1-3.3-4Zm4.9 4.6c-.6-.8-1.1-2.4-1.2-4.6h2.4c-.1 2.2-.6 3.8-1.2 4.6Zm1.6-.6c.5-1.1.9-2.5 1-4h2.3a5.5 5.5 0 0 1-3.3 4Z"/></svg></div>
          <h3>Ships to six targets</h3>
          <p>Web, desktop, WeChat MiniGames, single-file playable ads, and native Android / iOS — an arm64 app on an embedded Dawn, not a WebView.</p>
        </div>
        <div class="card">
          <div class="ico"><svg width="17" height="17" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 1 2 3.5v4.2c0 3.4 2.5 6.2 6 7.3 3.5-1.1 6-3.9 6-7.3V3.5L8 1Zm0 1.7 4.5 1.9v3.1c0 2.6-1.9 4.8-4.5 5.8-2.6-1-4.5-3.2-4.5-5.8V4.6L8 2.7Z"/></svg></div>
          <h3>Content hot-update</h3>
          <p>Content-addressed asset groups a shipped game downloads and applies atomically, verified by digest and rolled back if wrong.</p>
        </div>
      </div>
    </section>

    <!-- ── targets ──────────────────────────────────────────────────────── -->
    <section class="wrap tight">
      <div class="head">
        <span class="eyebrow">One project</span>
        <h2>Built for the platform you name</h2>
      </div>
      <div class="targets">
        <span class="target"><b>Web</b> — WebGL 2 / WebGPU</span>
        <span class="target"><b>Desktop</b> — Windows · macOS · Linux</span>
        <span class="target"><b>WeChat</b> MiniGame</span>
        <span class="target"><b>Playable ads</b> — one HTML file</span>
        <span class="target"><b>Android</b> — APK · AAB · Studio project</span>
        <span class="target"><b>iOS</b> — Xcode project</span>
      </div>
    </section>

    <!-- ── code ─────────────────────────────────────────────────────────── -->
    <section class="wrap tight">
      <div class="head">
        <span class="eyebrow">The SDK</span>
        <h2>Write game logic in TypeScript</h2>
        <p>Declare what a system needs; Estella runs it over the matching entities each frame.</p>
      </div>
      <div class="code-shell">
        <div class="code-bar"><span class="tab">movement.ts</span></div>
<pre><span class="k">const</span> Speed = <span class="f">defineComponent</span>(<span class="s">'Speed'</span>, { value: <span class="n">200</span> });

<span class="f">addSystem</span>(<span class="f">defineSystem</span>(
    [<span class="f">Res</span>(Time), <span class="f">Query</span>(<span class="f">Mut</span>(LocalTransform), Speed)],
    (time, query) => {
        <span class="k">for</span> (<span class="k">const</span> [entity, transform, speed] <span class="k">of</span> query) {
            transform.position.x += speed.value * time.delta;
        }
    }
));</pre>
      </div>
    </section>
  </main>

  <footer>
    <div class="wrap foot">
      <a class="brand" href="/">
        <svg class="mark" width="20" height="20" viewBox="0 0 100 100" aria-hidden="true">
          <path d="M50 6 L58 42 L94 50 L58 58 L50 94 L42 58 L6 50 L42 42 Z" fill="var(--star)" />
        </svg>
        Estella
      </a>
      <div class="spacer"></div>
      <nav>
        <a href="/docs/getting-started/introduction/">Documentation</a>
        <a href="/docs/zh-cn/getting-started/introduction/" lang="zh-CN">中文文档</a>
        <a href="/docs/api-ts/readme/">API reference</a>
        <a href="https://github.com/esengine/estella/blob/master/CHANGELOG.md">Changelog</a>
        <a href="https://github.com/esengine/estella">GitHub</a>
        <a href="https://discord.gg/sAX6PXZ9">Discord</a>
        <a href="https://qm.qq.com/q/BONa5LXQ0U">QQ 群</a>
        <a href="https://github.com/esengine/estella/blob/master/LICENSE">Apache-2.0</a>
      </nav>
      <p class="legal">
        © 2026 ESEngine Team. Estella is free and open source under the Apache License 2.0.
      </p>
    </div>
  </footer>

  <script>
    // Progressive enhancement only. The download buttons point at stable mirror
    // aliases that always resolve to the newest release, and the version beside
    // them is substituted when the site is built — so everything below is a
    // refinement: which card is yours, and the exact size and name of the file
    // if the mirror can be asked. It cannot be, from a browser, until the bucket
    // states a CORS rule; the page is written to not care either way.
    (function () {
      var RELEASE_METADATA = '/latest.json';

      // Opened as a file rather than through the site build: show nothing rather
      // than the placeholder the build would have replaced.
      var label = document.getElementById('release-label');
      if (label.textContent.indexOf('__') >= 0) {
        label.textContent = 'Latest release';
        document.getElementById('release-chip').href =
          'https://github.com/esengine/estella/releases';
        [].forEach.call(document.querySelectorAll('.meta .name'), function (el) {
          if (el.textContent.indexOf('__') >= 0) el.textContent = '';
        });
      }

      function detectOS() {
        var ua = navigator.userAgent;
        if (/Mac|iPhone|iPad/.test(ua)) return 'mac';
        if (/Windows/.test(ua)) return 'win';
        return null;
      }

      function mb(bytes) {
        return Math.round(bytes / 1048576) + ' MB';
      }

      // Mark the visitor's platform, and aim the hero button at it.
      var os = detectOS();
      if (os) {
        var card = document.getElementById(os === 'mac' ? 'card-mac' : 'card-win');
        var btn = document.getElementById(os === 'mac' ? 'btn-mac' : 'btn-win');
        var tag = document.createElement('span');
        tag.className = 'badge-you';
        tag.textContent = 'your platform';
        card.appendChild(tag);
        card.setAttribute('data-recommended', '');
        var hero = document.getElementById('hero-download');
        hero.href = btn.href;
        hero.setAttribute('download', '');
        document.getElementById('hero-download-label').textContent =
          os === 'mac' ? 'Download for macOS' : 'Download for Windows';
      }

      // Deployment snapshots the release metadata on this origin so labels do
      // not depend on the mirror granting browser cross-origin access.
      fetch(RELEASE_METADATA, { headers: { accept: 'application/json' } })
        .then(function (r) { return r.ok ? r.json() : Promise.reject(r.status); })
        .then(function (latest) {
          if (latest.version) {
            document.getElementById('release-label').textContent = 'v' + latest.version;
            document.getElementById('release-chip').href =
              'https://github.com/esengine/estella/releases/tag/v' + latest.version;
          }
          var d = latest.downloads || {};
          [['win', d.win], ['mac', d['mac-arm64']]].forEach(function (pair) {
            var meta = document.getElementById('meta-' + pair[0]);
            var info = pair[1];
            if (!info) return;
            if (info.size) meta.querySelector('.size').textContent = mb(info.size);
            if (info.name) meta.querySelector('.name').textContent = info.name;
          });
        })
        .catch(function () { /* the built-in labels stand */ });
    })();
    // A visitor who asked for less motion gets the still the loop's poster shows, not a street that rains.
    (function () {
      var v = document.getElementById('hero-loop');
      if (v && window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
        v.removeAttribute('autoplay');
        v.pause();
      }
    })();
  </script>
</body>
</html>