gitflarePublicPartly agent-ready40
orbit-duel
Real-time two-player orbital combat game on Cloudflare Workers and Durable Objects.
- LicenseApache-2.0
- LanguageJavaScript
- Last landed
0413e56Oct 23, 2026
Add the Apache-2.0 licence
0413e56<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no,viewport-fit=cover"><meta name="theme-color" content="#05060f"><title>Orbit Duel</title><link rel="stylesheet" href="/style.css"></head><body><canvas id="game"></canvas><div id="rotate" hidden>Rotate your phone for the best view</div> <main id="menu" class="screen"> <section class="panel"> <h1 class="title">ORBIT<span>DUEL</span></h1> <p class="tag">Gravity dogfights. Up to 8 pilots.</p> <input id="name" maxlength="16" placeholder="Your name" autocomplete="off" aria-label="Your name"> <div class="row"> <button id="quick" type="button" class="btn primary">Quick play</button> <button id="create" type="button" class="btn">Create private room</button> </div> <p id="live" class="muted"></p> <p id="msg" class="err"></p> <div id="board" class="card"><h3>Top pilots</h3><div id="board-list" class="rows"></div></div> <div class="card how"><h3>How to play</h3> <p><b>Keys</b> A/D or arrows rotate, W or up thrust, Space fire, Tab scoreboard.</p> <p><b>Touch</b> left stick aims and thrusts, right button fires.</p> <p>3 hits destroy a ship. Avoid the planet. First to 10 kills wins.</p></div> </section></main> <div id="join" class="screen sheetwrap" hidden> <section class="panel sheet"> <h2>Join room <span id="join-code"></span></h2> <p id="join-info" class="muted"></p> <input id="join-name" maxlength="16" placeholder="Your name" autocomplete="off" aria-label="Your name"> <div class="row"><button id="join-go" type="button" class="btn primary">Join</button> <a class="btn" href="/">Back</a></div> </section></div> <div id="hud" hidden> <div id="card" class="hudbox"> <div id="avatar"></div> <div><div id="p-name"></div><div id="hp" class="pips"></div></div> <div id="power" hidden><svg viewBox="0 0 36 36"><circle cx="18" cy="18" r="15" class="bg"/><circle id="power-ring" cx="18" cy="18" r="15"/></svg><span id="power-name"></span></div> </div> <div id="center" class="hudbox"> <div id="hud-time">0:00</div> <div id="race"><i id="bar1"></i><i id="bar2"></i></div> <div id="hud-kills"></div> </div> <div id="right"> <div class="hudbox"><span id="hud-room"></span><button id="copy" type="button" class="mini">Copy invite link</button></div> <div id="board-tab" class="hudbox" hidden></div> <div id="hud-badges"><span id="hud-badge" hidden>reconnecting…</span><span id="hud-spec" hidden>spectating</span><span id="hud-debug" hidden></span></div> </div> <div id="feed"></div> <div id="death" hidden><svg viewBox="0 0 36 36"><circle cx="18" cy="18" r="15" class="bg"/><circle id="death-ring" cx="18" cy="18" r="15"/></svg><p id="death-text"></p></div> <div id="hud-btns"><button id="mute" type="button" class="mini" aria-label="Mute">🔊</button><button id="tabbtn" type="button" class="mini">Scores</button></div> <div id="countdown"></div> <div id="flash"></div> <div id="results" class="panel" hidden><h2 id="results-win">Results</h2><div id="podium"></div><div id="results-table"></div><p id="results-next"></p></div></div><script type="module" src="/app.js"></script></body></html>