Tiers (Marty 2026-11-02, every game must fund itself): guests earn nothing (a guest's chapters, drips and best follow them at sign-in, the POL does not; no more collected= payout on /auth), a free InstantAdPay account earns freeSharePct (25, admin) of the chapter drip with the note "Game Pass holders earn the full amount.", Game Pass holders earn the full drip plus the shield perk, GAMEPASS off = everyone full. /api/me carries tier, freeSharePct and yourDrip; landing, lobby, clear card, tester briefing and share preview say play free, sign in to earn a taste, Game Pass for the full table. Tests: guest 0 at sign-in, free 25%, pass 100%, gp off full, settings key.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-02 17:01:10 -06:00
parent 4d8dde2ad2
commit b69086aaac
11 changed files with 92 additions and 55 deletions
+2 -1
View File
@@ -23,6 +23,7 @@
<form id="settings" class="card" style="max-width:none">
<div class="row">
<div><label>Drip per first clear (POL)</label><input name="dripPol" type="number" step="0.001" min="0"></div>
<div><label>Free account share of the drip (%, Game Pass = 100)</label><input name="freeSharePct" type="number" step="1" min="0" max="100"></div>
<div><label>Daily cap on drips (POL)</label><input name="dailyCapPol" type="number" step="0.01" min="0"></div>
<div><label>Payout threshold (POL)</label><input name="thresholdPol" type="number" step="0.01" min="0"></div>
<div><label>Seed float (POL, on purpose)</label><input name="seedPol" type="number" step="0.01" min="0"></div>
@@ -51,6 +52,6 @@
<h2>Payouts</h2><div class="scroll"><table id="payouts"></table></div>
<h2>Recent runs</h2><div class="scroll"><table id="runs"></table></div>
</div>
<script src="/admin.js"></script>
<script src="/admin.js?v=20261102"></script>
</body>
</html>
+2 -2
View File
@@ -20,7 +20,7 @@ function load() {
$('pool').innerHTML = stat('Available now', f4(p.available) + ' POL') + stat('In from refuels', f4(p.in)) + stat('Back from spends', f4(p.spends)) + stat('Out as drips', f4(p.out)) + stat('Seed float', f4(p.seed)) + stat('Granted today', f4(p.grantedToday) + ' / ' + f4(p.dailyCapPol));
var f = d.faucet; $('faucet').innerHTML = stat('Mode', f.enabled ? (f.dryRun ? 'DRY RUN' : 'LIVE') : 'off') + stat('Wallet', f.address ? f.address.slice(0, 8) + '…' + f.address.slice(-6) : '–') + stat('Balance', f.balance != null ? f4(f.balance) + ' POL' : '–') + stat('Last check', ct(f.checkedAt) || '–') + stat('Last tick', f.lastTick ? esc(JSON.stringify(f.lastTick)) : '–');
var s = d.settings, form = $('settings');
['refSharePct', 'dripPol', 'dailyCapPol', 'thresholdPol', 'seedPol', 'poolSharePct', 'creditsPerVisit', 'usdPerCredit', 'usdPerPolFallback', 'lowBalancePol', 'signups'].forEach(function (k) { form.elements[k].value = s[k]; });
['refSharePct', 'dripPol', 'freeSharePct', 'dailyCapPol', 'thresholdPol', 'seedPol', 'poolSharePct', 'creditsPerVisit', 'usdPerCredit', 'usdPerPolFallback', 'lowBalancePol', 'signups'].forEach(function (k) { form.elements[k].value = s[k]; });
form.elements.item_shield.value = s.itemPol.shield; form.elements.item_slow.value = s.itemPol.slow; form.elements.item_magnet.value = s.itemDrips.magnet; form.elements.item_ship.value = s.itemDrips.ship;
form.elements.testers.value = (s.testers || []).join('\n'); form.elements.trial.value = s.trial === false ? 'off' : 'on';
table('players', [['Member', function (r) { return '#' + r.memberId + (r.username ? ' @' + esc(r.username) : '') + '<br><span class="muted">' + esc(r.email || '') + '</span>'; }], ['Wallet', function (r) { return r.wallet ? r.wallet.slice(0, 6) + '…' + r.wallet.slice(-4) : '<span style="color:var(--sig)">none</span>'; }], ['Chapter', 'chapter', 1], ['Drips', 'bank', 1], ['Best', 'best', 1], ['Runs', 'runs', 1], ['Armed', function (r) { return Object.keys(r.items || {}).join(', '); }], ['Last seen', function (r) { return ct(r.lastSeen); }]], d.players);
@@ -33,7 +33,7 @@ function load() {
}
$('settings').addEventListener('submit', function (e) {
e.preventDefault(); var f = e.target.elements; var body = {};
['refSharePct', 'dripPol', 'dailyCapPol', 'thresholdPol', 'seedPol', 'poolSharePct', 'creditsPerVisit', 'usdPerCredit', 'usdPerPolFallback', 'lowBalancePol', 'signups'].forEach(function (k) { body[k] = f[k].value; });
['refSharePct', 'dripPol', 'freeSharePct', 'dailyCapPol', 'thresholdPol', 'seedPol', 'poolSharePct', 'creditsPerVisit', 'usdPerCredit', 'usdPerPolFallback', 'lowBalancePol', 'signups'].forEach(function (k) { body[k] = f[k].value; });
body.itemPol = { shield: Number(f.item_shield.value), slow: Number(f.item_slow.value) }; body.itemDrips = { magnet: Number(f.item_magnet.value), ship: Number(f.item_ship.value) };
body.trial = f.trial.value; body.testers = f.testers.value.split(/\r?\n/).map(function (x) { return x.trim(); }).filter(Boolean);
api('/api/admin/settings', body).then(function (r) { $('saveOut').textContent = r.ok ? 'Saved.' : (r.error || 'Failed'); load(); });
+3 -3
View File
@@ -6,7 +6,7 @@
<title>Drip Runner · hop the network, get paid in POL</title>
<meta name="description" content="A fast runner game for InstantAdPay members. Clear chapters, refuel on member pages, collect POL in your wallet.">
<meta property="og:title" content="Drip Runner: hop the network, get paid in POL">
<meta property="og:description" content="Earn free POL: fly your courier through the network, clear chapters, and get paid straight to your wallet.">
<meta property="og:description" content="Play free. Fly your courier through the network, clear chapters, and sign in with InstantAdPay to earn POL on every first clear. The Game Pass pays the full reward, straight to your wallet.">
<meta property="og:image" content="https://driprunner.app/og-driprunner.jpg">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
@@ -45,7 +45,7 @@
<div>
<p class="logo" style="font-size:22px">Drip<span>Runner</span></p>
<h1>Hop the network.<br><em>Get paid in POL.</em></h1>
<p class="lead">A fast little runner game for InstantAdPay members. Grab gold drips, dodge the bots, clear chapters. Your first clear of every chapter drips POL into your game balance, and it pays out to the wallet on your InstantAdPay account.</p>
<p class="lead">A fast little runner game for InstantAdPay members. Grab gold drips, dodge the bots, clear chapters. Play free as a guest for the score; sign in with a free InstantAdPay account and your first clear of every chapter drips a taste of POL into your game balance; Game Pass holders earn the full drip. It pays out to the wallet on your InstantAdPay account.</p>
<div class="cta">
<a class="btn" href="/signin">Play with InstantAdPay</a>
<a class="btn ghost" href="/play">Try a run first</a>
@@ -69,7 +69,7 @@
<h2>How it plays</h2>
<div class="cols">
<div class="card"><span class="step">1</span><h3>Tap to hop</h3><p>The courier drops when you let go and hops when you tap. Gold drips are your score and top up your fuel. Magenta bots end the run, and from chapter 2 you thread orange firewalls.</p></div>
<div class="card"><span class="step">2</span><h3>Clear chapters</h3><p>Each chapter has a drip goal for one run. Clear it and you move up. The first clear of every chapter pays a POL drip into your game balance.</p></div>
<div class="card"><span class="step">2</span><h3>Clear chapters</h3><p>Each chapter has a drip goal for one run. Clear it and you move up. Signed in, the first clear of every chapter pays a POL drip into your game balance: a free InstantAdPay account earns a taste of it, Game Pass holders earn the full drip. Guest runs earn no POL, but your progress follows you when you sign in.</p></div>
<div class="card"><span class="step">3</span><h3>Refuel, don't restart</h3><p>Out of fuel or hit by a bot? Refuel with a short visit to a member's page or a member video. Your run picks up exactly where it stopped.</p></div>
</div>
+2 -2
View File
@@ -170,7 +170,7 @@ canvas#game{position:absolute;inset:0;width:100%;height:100%;display:block;touch
<div class="big" id="cBig">+0.010<small>POL</small></div><p id="cText"></p><span class="chip ok" id="cChip"></span>
<div class="tip" id="cTip" hidden></div>
<button class="btn gold" id="bNext" type="button">Next chapter</button>
<div class="row2"><button class="btn ghost" id="bShareClear" type="button" hidden>Share this</button><a class="btn ghost" id="bClearSignin" href="#" hidden style="text-decoration:none;text-align:center">Sign in to collect</a></div><button class="btn ghost" id="bLobby1" type="button">Back to lobby</button>
<div class="row2"><button class="btn ghost" id="bShareClear" type="button" hidden>Share this</button><a class="btn ghost" id="bClearSignin" href="#" hidden style="text-decoration:none;text-align:center">Sign in to earn</a></div><button class="btn ghost" id="bLobby1" type="button">Back to lobby</button>
</div>
<div class="offer" id="cOffer" hidden><div class="eyebrow">Member welcome offer</div><h4>Become an InstantAdPay member</h4><p id="cOfferText"></p>
<a class="btn gold" id="cOfferGo" href="https://instantadpay.com/my?from=driprunner#buy">Get the $5 package</a><button class="btn ghost" id="cOfferNo" type="button">Not now</button></div>
@@ -205,6 +205,6 @@ canvas#game{position:absolute;inset:0;width:100%;height:100%;display:block;touch
<script src="https://instantadpay.com/assets/game-signin.js?v=20261003a" async></script>
<script src="https://instantadpay.com/assets/game-strip.js?v=20261003a"></script>
<script src="/spawn.js"></script>
<script src="/play.js?v=20261027lw"></script>
<script src="/play.js?v=20261102gate"></script>
</body>
</html>
+7 -6
View File
@@ -60,20 +60,21 @@ function share(text) {
function lobby() {
R = null; $('hud').classList.remove('on'); $('tapdesk').hidden = true;
$('lChap').textContent = P.chapter; $('lDrips').textContent = P.bank.toLocaleString(); $('lPol').textContent = f3(BAL.unpaid);
$('lPool').innerHTML = 'POL pool <b>' + f3(POOL.available) + '</b> · today’s cap left <b>' + f3(POOL.capLeft) + '</b> · a chapter drip is <b>' + f3(POOL.dripPol) + '</b>';
// the tiers (2026-11-02): guests earn nothing, a free account earns a share of the table, Game Pass holders earn the table
$('lPool').innerHTML = 'POL pool <b>' + f3(POOL.available) + '</b> · today’s cap left <b>' + f3(POOL.capLeft) + '</b> · a chapter drip is <b>' + f3(POOL.dripPol) + '</b>' + (POOL.tier === 'guest' ? ' · guests earn nothing, sign in free to earn' : POOL.tier === 'free' ? ' · yours pays <b>' + f3(POOL.yourDrip) + '</b> (' + (POOL.freeSharePct || 25) + '%), Game Pass holders earn the full amount' : '');
$('lIap').href = IAP + '/my'; $('bLevel').href = IAP + '/my#buy'; tip('lTip');
try { if (BAL && BAL.unpaid > 0 && ME && !hasW() && !ME.guest && !sessionStorage.getItem('dr.walletnudge')) { sessionStorage.setItem('dr.walletnudge', '1'); toast(f3(BAL.unpaid) + ' POL is waiting. Link your wallet on InstantAdPay to receive this POL.'); } } catch (e) {}
$('lPerk').hidden = !ME_EXTRA.perk; $('lPerk').textContent = ME_EXTRA.perk || ''; // member perk (2026-10-05)
// Game Pass (InstantAdPay, all nine games): active until <date>, or the link to get it; opens a new tab (the game may be framed)
(function () { var g = ME_EXTRA.gamepass, el = $('lPass'); if (!el) { el = document.createElement('p'); el.id = 'lPass'; el.className = 'fine'; $('lPool').parentNode.insertBefore(el, $('lPool').nextSibling); }
if (!g || !g.on) { el.hidden = true; return; } el.hidden = false;
el.innerHTML = g.active ? '🎫 Game Pass active' + (g.untilText ? ' until ' + esc(g.untilText) : '') + ' · a shield at the start of every run' : '🎫 <a href="' + esc(g.url) + '" target="_blank" rel="noopener">Get the Game Pass</a> · higher daily POL caps across all nine games, a shield every run here'; })();
el.innerHTML = g.active ? '🎫 Game Pass active' + (g.untilText ? ' until ' + esc(g.untilText) : '') + ' · the full POL on every first clear, a shield at the start of every run' : '🎫 <a href="' + esc(g.url) + '" target="_blank" rel="noopener">Get the Game Pass</a> · the full POL on every first clear (a free account earns ' + (POOL.freeSharePct || 25) + '%), higher daily caps across all nine games, a shield every run here'; })();
$('bHangar').textContent = P.freeUpgrades > 0 ? 'Hangar · ' + P.freeUpgrades + ' free' : 'Hangar';
// signed in through the game: these open InstantAdPay already signed in (in-game sign-in pass, 2026-10-03)
if (window.IAPGames && !$('moreGames').dataset.done) { $('moreGames').dataset.done = 1; IAPGames.strip($('moreGames'), { current: 'driprunner', title: 'More games that pay POL' }); } // cross-promo strip (2026-10-03)
[['lIap', 'overview'], ['bLevel', 'buy']].forEach(function (x) { var a = $(x[0]); if (a && !a.dataset.pass) { a.dataset.pass = 1; a.addEventListener('click', function (ev) { if (window.IAPSignin && IAPSignin.hasPass()) { ev.preventDefault(); IAPSignin.enter(x[1]); } }); } });
if (ME.guest) {
$('lMember').innerHTML = '<i class="no"></i>Playing as a guest · sign in to keep your progress and collect POL';
$('lMember').innerHTML = '<i class="no"></i>Playing as a guest · guest runs earn no POL. Sign in free to earn on every new chapter; the Game Pass pays the full amount';
$('bSignin').hidden = false; $('bSignin').href = ME_EXTRA.signin || '/signin'; $('lShare').hidden = true;
} else {
$('lMember').innerHTML = '<i class="' + (hasW() ? '' : 'no') + '"></i>InstantAdPay · ' + (ME.username ? '@' + ME.username : '#' + ME.memberId) + ' · ' + (ME.wallet ? ME.wallet.slice(0, 6) + '…' + ME.wallet.slice(-4) : hasW() ? 'wallet linked' : 'no wallet on file · ' + linkW());
@@ -156,7 +157,7 @@ function cleared() {
$('cEyebrow').textContent = 'Chapter ' + c.chapter + ' cleared'; $('cTitle').textContent = 'Banked ' + (R.goal) + ' drips';
var m = Math.floor(c.playTime / 60), s = c.playTime % 60; var tm = m + ':' + (s < 10 ? '0' : '') + s;
$('cBig').innerHTML = '+' + f3(c.pol) + '<small>POL</small>'; $('cBig').classList.toggle('dim', !c.pol);
var why = { paid: 'First clear, verified. Added to your game balance.', replay: c.first ? 'Verified.' : 'You cleared this one before. Only the first clear pays.', pool: 'The POL pool is empty right now. Refuel visits fill it, so this clear counts but pays nothing.', cap: 'Today’s pool cap is spent. Chapter counts, no POL today.', flagged: 'This run was flagged by the server check, so it pays nothing.', guest: 'You are playing as a guest. Sign in with InstantAdPay and this clear pays ' + f3(POOL.dripPol) + ' POL into your balance. Your progress comes with you.' };
var why = { paid: 'First clear, verified. Added to your game balance.', replay: c.first ? 'Verified.' : 'You cleared this one before. Only the first clear pays.', pool: 'The POL pool is empty right now. Refuel visits fill it, so this clear counts but pays nothing.', cap: 'Today’s pool cap is spent. Chapter counts, no POL today.', flagged: 'This run was flagged by the server check, so it pays nothing.', guest: 'You are playing as a guest, so this clear pays nothing. Sign in with InstantAdPay (free) and your next first clears earn POL; Game Pass holders earn the full amount. Your progress comes with you.' };
$('bShareClear').hidden = !!ME.guest || !ME_EXTRA.share; $('bShareClear').dataset.text = 'I just cleared Chapter ' + c.chapter + ' in Drip Runner' + (c.pol ? ' and it paid ' + f3(c.pol) + ' POL' : '') + '. Hop the network, dodge the bots:';
$('bClearSignin').hidden = !ME.guest; if (ME.guest) $('bClearSignin').href = ME_EXTRA.signin || '/signin';
$('cText').textContent = why[c.reason] || '';
@@ -296,12 +297,12 @@ resize(); requestAnimationFrame(loop);
loadMe().then(function () {
var q = new URLSearchParams(location.search);
if (q.get('resume')) { history.replaceState(null, '', '/play'); return tryResume(q); }
if (q.get('collected')) { history.replaceState(null, '', '/play'); setTimeout(function () { toast('Signed in. Your guest clears paid ' + q.get('collected') + ' drip' + (q.get('collected') === '1' ? '' : 's') + ' into your balance.'); }, 600); }
if (q.get('carried') || q.get('collected')) { history.replaceState(null, '', '/play'); setTimeout(function () { toast('Signed in. Your guest progress came with you. From here on your first clears earn POL.'); }, 600); } // guest runs earn nothing (2026-11-02)
lobby();
}).catch(function (r) {
var b = $('loadBtn'); b.hidden = false; b.href = (r && (r.signin || r.iap)) || '/signin';
if (r && r.guestOk) { // came through a share or tester link: play first, sign in later
$('loadTitle').textContent = 'Ready to run'; $('loadText').textContent = 'Play a run right now, no sign-in. Sign in with InstantAdPay when you want to keep your progress, refuel, and collect POL.';
$('loadTitle').textContent = 'Ready to run'; $('loadText').textContent = 'Play a run right now, no sign-in. Guest runs earn no POL: sign in with InstantAdPay (free) to earn a taste on every chapter you clear, refuel, and keep your progress. The Game Pass pays the full table.';
b.textContent = 'Sign in with InstantAdPay'; b.className = 'btn ghost'; var g = $('loadGuest'); g.hidden = false;
g.onclick = function () { g.disabled = true; api('/api/guest', {}).then(function (x) { if (x._status !== 200) { g.disabled = false; return toast(x.error || 'Could not start a guest run.'); } return loadMe().then(function () { lobby(); newRun(); }); }); };
return;
+1 -1
View File
@@ -29,7 +29,7 @@
<li><b>Tap to hop.</b> The courier drops when you do nothing and hops when you tap. Space bar works on a computer.</li>
<li><b>Gold drips</b> are the score. <b>Magenta bots</b> end the run. From chapter 2, <b>orange firewalls</b> have to be threaded through the gap.</li>
<li><b>Fuel</b> drains all the time. Every drip tops it up a little. Empty tank, run over.</li>
<li><b>Chapters.</b> Each chapter has a drip goal for one run. Clear it and you move up. The first time you clear a chapter, a drip of POL lands in your game balance.</li>
<li><b>Chapters.</b> Each chapter has a drip goal for one run. Clear it and you move up. Signed in, the first time you clear a chapter a drip of POL lands in your game balance (a free account earns a taste of it, Game Pass holders the full drip). Guest runs earn no POL.</li>
</ul>
<h2>Where the POL comes from</h2>