Drip Runner
+Loading sign-in…
diff --git a/public/index.html b/public/index.html index a224dc6..c456c36 100644 --- a/public/index.html +++ b/public/index.html @@ -47,7 +47,7 @@
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.
New to InstantAdPay? The first button signs you up free with just your email, then drops you straight into the game.
@@ -90,7 +90,7 @@Drip Runner pays small amounts of POL for play that the game can verify. Amounts depend on the pool, which is funded by the ad visits players make, and can change. Nothing here is a promise of income. One account per person. Part of the Crypto Team Build Network, alongside InstantAdPay and PolHunter.
diff --git a/public/play.html b/public/play.html index dfc4b4b..acb43d0 100644 --- a/public/play.html +++ b/public/play.html @@ -162,6 +162,7 @@ canvas#game{position:absolute;inset:0;width:100%;height:100%;display:block;touch + +Drip Runner
+Loading sign-in…
diff --git a/public/play.js b/public/play.js index efb05c2..be33228 100644 --- a/public/play.js +++ b/public/play.js @@ -59,9 +59,11 @@ function lobby() { $('lChap').textContent = P.chapter; $('lDrips').textContent = P.bank.toLocaleString(); $('lPol').textContent = f3(BAL.unpaid); $('lPool').innerHTML = 'POL pool ' + f3(POOL.available) + ' · today’s cap left ' + f3(POOL.capLeft) + ' · a chapter drip is ' + f3(POOL.dripPol) + ''; $('lIap').href = IAP + '/my'; $('bLevel').href = IAP + '/my#buy'; tip('lTip'); + // signed in through the game: these open InstantAdPay already signed in (in-game sign-in pass, 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 = 'Playing as a guest · sign in to keep your progress and collect POL'; - $('bSignin').hidden = false; $('bSignin').href = ME_EXTRA.signin || (IAP + '/api/my/driprunner'); $('lShare').hidden = true; + $('bSignin').hidden = false; $('bSignin').href = ME_EXTRA.signin || '/signin'; $('lShare').hidden = true; } else { $('lMember').innerHTML = 'InstantAdPay · ' + (ME.username ? '@' + ME.username : '#' + ME.memberId) + ' · ' + (ME.wallet ? ME.wallet.slice(0, 6) + '…' + ME.wallet.slice(-4) : 'no wallet on file'); $('bSignin').hidden = true; @@ -143,7 +145,7 @@ function cleared() { $('cBig').innerHTML = '+' + f3(c.pol) + 'POL'; $('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.' }; $('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 || (IAP + '/api/my/driprunner'); + $('bClearSignin').hidden = !ME.guest; if (ME.guest) $('bClearSignin').href = ME_EXTRA.signin || '/signin'; $('cText').textContent = why[c.reason] || ''; $('cChip').className = 'chip ' + (c.pol ? 'ok' : 'sig'); $('cChip').textContent = (c.pol ? 'verified' : c.reason) + ' · ' + tm + ' play time'; R.chapter = c.next; R.goal = c.nextGoal; R.chapDrips = 0; if (r.pool != null) POOL.available = r.pool; tip('cTip'); setTimeout(function () { show('ovClear'); }, 500); @@ -165,7 +167,7 @@ function snapshot(nonce) { } $('bRefuel').addEventListener('click', function () { if (!R) return; - if (ME.guest) { location.href = ME_EXTRA.signin || (IAP + '/api/my/driprunner'); return; } // guests sign in first; their progress follows them + if (ME.guest) { location.href = ME_EXTRA.signin || '/signin'; return; } // guests sign in first; their progress follows them $('bRefuel').disabled = true; api('/api/refuel/start', { runId: R.id }).then(function (r) { $('bRefuel').disabled = false; @@ -252,7 +254,7 @@ loadMe().then(function () { 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); } lobby(); }).catch(function (r) { - var b = $('loadBtn'); b.hidden = false; b.href = (r && (r.signin || r.iap)) || IAP + '/api/my/driprunner'; + 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.'; b.textContent = 'Sign in with InstantAdPay'; b.className = 'btn ghost'; var g = $('loadGuest'); g.hidden = false; diff --git a/public/signin.html b/public/signin.html new file mode 100644 index 0000000..77e9842 --- /dev/null +++ b/public/signin.html @@ -0,0 +1,28 @@ + + +
+ + + +
+ + + + +
+