|
| 1 | +<!doctype html> |
| 2 | +<html lang="zh-CN"> |
| 3 | + <head> |
| 4 | + <meta charset="utf-8" /> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1" /> |
| 6 | + <meta |
| 7 | + name="description" |
| 8 | + content="箱线回路:像素风机房调度小游戏,把电路箱推上节点,断流火花并从闸门中撤离。" |
| 9 | + /> |
| 10 | + <title>箱线回路 | DemoCodex</title> |
| 11 | + <link |
| 12 | + rel="icon" |
| 13 | + href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='12' fill='%230d1b1f'/%3E%3Crect x='14' y='14' width='36' height='36' fill='%2306b6d4'/%3E%3Crect x='24' y='24' width='16' height='16' fill='%23f97316'/%3E%3C/svg%3E" |
| 14 | + /> |
| 15 | + <link rel="stylesheet" href="src/css/crate-circuit.css" /> |
| 16 | + </head> |
| 17 | + <body> |
| 18 | + <main class="pixel-shell"> |
| 19 | + <header class="pixel-hero"> |
| 20 | + <a class="pixel-back" href="index.html">返回首页</a> |
| 21 | + <div> |
| 22 | + <p class="pixel-eyebrow">Factory Grid</p> |
| 23 | + <h1 class="pixel-title">箱线回路</h1> |
| 24 | + <p class="pixel-lead"> |
| 25 | + 机房里的箱体是电路开关,节点一旦接通就能恢复整段供电。你要把每个箱体推到位,再趁回路稳定时穿过右下闸门。 |
| 26 | + </p> |
| 27 | + </div> |
| 28 | + <div class="pixel-actions"> |
| 29 | + <button class="pixel-cta" id="app-start" type="button">开始接线</button> |
| 30 | + <button class="pixel-cta pixel-cta--ghost" id="app-reset" type="button">重置机房</button> |
| 31 | + </div> |
| 32 | + </header> |
| 33 | + |
| 34 | + <section class="pixel-layout"> |
| 35 | + <section class="pixel-panel pixel-panel--primary"> |
| 36 | + <div class="pixel-stats"> |
| 37 | + <article class="pixel-stat"><span class="pixel-stat__label">关卡</span><strong class="pixel-stat__value" id="stat-stage">1</strong></article> |
| 38 | + <article class="pixel-stat"><span class="pixel-stat__label">得分</span><strong class="pixel-stat__value" id="stat-score">0</strong></article> |
| 39 | + <article class="pixel-stat"><span class="pixel-stat__label">护盾</span><strong class="pixel-stat__value" id="stat-life">3</strong></article> |
| 40 | + <article class="pixel-stat"><span class="pixel-stat__label">目标</span><strong class="pixel-stat__value" id="stat-target">0 / 3</strong></article> |
| 41 | + <article class="pixel-stat"><span class="pixel-stat__label">技能</span><strong class="pixel-stat__value" id="stat-skill">就绪</strong></article> |
| 42 | + <article class="pixel-stat"><span class="pixel-stat__label">纪录</span><strong class="pixel-stat__value" id="stat-best">0</strong></article> |
| 43 | + </div> |
| 44 | + <div class="pixel-board-shell"> |
| 45 | + <canvas class="pixel-canvas" id="pixel-canvas" width="840" height="840" role="img" aria-label="箱线回路棋盘"></canvas> |
| 46 | + <div class="pixel-overlay is-visible" id="pixel-overlay" aria-live="polite"> |
| 47 | + <p class="pixel-overlay__kicker">机房简报</p> |
| 48 | + <h2 class="pixel-overlay__title" id="overlay-title">按开始或 Enter 进入机房</h2> |
| 49 | + <p class="pixel-overlay__body" id="overlay-body"> |
| 50 | + 推动箱体点亮节点,空格稳线,Q 释放断流,把周围的火花暂时冻结。 |
| 51 | + </p> |
| 52 | + </div> |
| 53 | + </div> |
| 54 | + <section class="pixel-pad"> |
| 55 | + <button class="pixel-pad__button" data-action="up" type="button">上</button> |
| 56 | + <button class="pixel-pad__button" data-action="left" type="button">左</button> |
| 57 | + <button class="pixel-pad__button" data-action="wait" type="button">等</button> |
| 58 | + <button class="pixel-pad__button" data-action="right" type="button">右</button> |
| 59 | + <button class="pixel-pad__button" data-action="down" type="button">下</button> |
| 60 | + <button class="pixel-pad__button pixel-pad__button--accent" data-action="skill" type="button">断流</button> |
| 61 | + </section> |
| 62 | + </section> |
| 63 | + <aside class="pixel-panel pixel-panel--side"> |
| 64 | + <section class="pixel-sidecard"> |
| 65 | + <h2 class="pixel-sidecard__title">任务状态</h2> |
| 66 | + <p class="pixel-sidecard__body" id="status-text">先把 3 个电路箱推上节点,再走向右下闸门。</p> |
| 67 | + <p class="pixel-sidecard__body pixel-sidecard__body--hint" id="objective-text"> |
| 68 | + 箱体会锁住节点,断流则能让火花安静两拍。 |
| 69 | + </p> |
| 70 | + </section> |
| 71 | + <section class="pixel-sidecard"> |
| 72 | + <h2 class="pixel-sidecard__title">玩法说明</h2> |
| 73 | + <ul class="pixel-rules"> |
| 74 | + <li>推动电路箱,别把自己卡死在通道里。</li> |
| 75 | + <li>节点全部接通后,闸门会开启。</li> |
| 76 | + <li>Q 释放断流,压住附近火花。</li> |
| 77 | + </ul> |
| 78 | + </section> |
| 79 | + <section class="pixel-sidecard"> |
| 80 | + <h2 class="pixel-sidecard__title">控制方式</h2> |
| 81 | + <ul class="pixel-rules"> |
| 82 | + <li>WASD / 方向键:移动</li> |
| 83 | + <li>Space:原地等待</li> |
| 84 | + <li>Q:释放断流</li> |
| 85 | + <li>Enter:开始</li> |
| 86 | + <li>R:重置</li> |
| 87 | + </ul> |
| 88 | + </section> |
| 89 | + <section class="pixel-sidecard"> |
| 90 | + <h2 class="pixel-sidecard__title">行动面板</h2> |
| 91 | + <div class="pixel-mini-actions"> |
| 92 | + <button class="pixel-button pixel-button--ghost" id="action-wait" type="button">等待</button> |
| 93 | + <button class="pixel-button pixel-button--accent" id="action-skill" type="button">断流</button> |
| 94 | + <button class="pixel-button pixel-button--ghost" id="action-restart" type="button">重开</button> |
| 95 | + </div> |
| 96 | + </section> |
| 97 | + <section class="pixel-sidecard"> |
| 98 | + <h2 class="pixel-sidecard__title">遥测</h2> |
| 99 | + <dl class="pixel-metrics"> |
| 100 | + <div class="pixel-metrics__row"><dt>当前回合</dt><dd id="metric-turn">0</dd></div> |
| 101 | + <div class="pixel-metrics__row"><dt>危险源</dt><dd id="metric-danger">0</dd></div> |
| 102 | + <div class="pixel-metrics__row"><dt>最佳关卡</dt><dd id="metric-best-stage">0</dd></div> |
| 103 | + </dl> |
| 104 | + </section> |
| 105 | + <section class="pixel-sidecard"> |
| 106 | + <h2 class="pixel-sidecard__title">行动日志</h2> |
| 107 | + <ul class="pixel-feed" id="feed-list"></ul> |
| 108 | + </section> |
| 109 | + </aside> |
| 110 | + </section> |
| 111 | + </main> |
| 112 | + <script src="src/js/grid-arcade-core.js"></script> |
| 113 | + <script src="src/js/pixel-page-runtime.js"></script> |
| 114 | + <script src="src/js/crate-circuit.js"></script> |
| 115 | + </body> |
| 116 | +</html> |
0 commit comments