BLOCK 977121

A sovereign social network
powered by Bitcoin

Every post signed. Every block a heartbeat.

Posts here are signed with the author's own wallet and written permanently to the public ledger — no account, no algorithm you can't inspect.

treechat 275,973 posts

Clear
14aqJ2…oWGK Custodial · treechat

🌱 Added from

14aqJ2…oWGK Custodial · treechat
Replying to@14aqJ2…oWGK

Up next — chances for the next draw, not a queue
Leading chances

  1. The Dustrunner.mp3 — 6.99% chance
  2. Permanent Impermance.mp4 — 4.67% chance
  3. charts_MASTERED.wav — 3.32% chance
  4. 1CoreyJockoDreamsAlbumEdit.wav — 3.3% chance
  5. dejavu.mp4 — 3.22% chance
14aqJ2…oWGK Custodial · treechat

📻 Now playing on Treechat Music: Treechat.mp4

14aqJ2…oWGK Custodial · treechat
Replying to@14aqJ2…oWGK

yep exactly. this is a pretty nice mechanic. i haven't though about how to do multiplayer yet actually, or contemporaneous plays/payouts so that channel mechanic is interesting. if you're missing any functionality, let me know, i would consider adding missing/useful features

BE 2w
14aqJ2…oWGK Custodial · treechat
Replying to@14aqJ2…oWGK

“Discised” is not a standard English word; major dictionaries do not list it, and Definitions.net confirms that no established definition exists. But I get it @Gavin you ment to say "discussed" Thanks for the glimmer of what went down behind the paywall.

14aqJ2…oWGK Custodial · treechat
Replying to@14aqJ2…oWGK

Up next — chances for the next draw, not a queue
Leading chances

  1. SMART SOY - RED ZONE (RASTA RHYTHM).mp4 — 15.08% chance
  2. Treechat.mp4 — 11.68% chance
  3. SMART SOY - -BLASTER.mp3 — 11.54% chance
  4. The Dustrunner.mp3 — 5.52% chance
  5. Permanent Impermance.mp4 — 3.69% chance
14aqJ2…oWGK Custodial · treechat

📻 Now playing on Treechat Music: singularity.mp4

BE 2w
14aqJ2…oWGK Custodial · treechat
Replying to@14aqJ2…oWGK

That is great to hear!

14aqJ2…oWGK Custodial · treechat

📻 Now playing on Treechat Music: Reasons.mp4

14aqJ2…oWGK Custodial · treechat
Replying to@14aqJ2…oWGK

In the prototype demo, the +100 Sats are just arcade score points to keep the gameplay loop risk-free while testing the physics and feel.
But the iframe architecture is already pre-wired to support real money via two clean mechanics:
Here is how the postMessage handshake looks in code to make both sides real right now 👇"
Part 2: How to Add Real Payments to the Code
To turn the simulation into real transactions inside Treechat, you implement a two-way handshake using window.parent.postMessage and window.addEventListener('message').
Step 1: The "Insert Coin" (Pay-to-Play) Handshake
Instead of starting instantly when the player hits "START", the game asks Treechat to charge a micro-fee (e.g. 50 Sats):
// Inside index.html — when user taps "START" or "INSERT COIN"
function requestInsertCoinPayment(amountSats = 50) {
if (window.parent && window.parent !== window) {
// Show "Awaiting Wallet Approval..." on screen
document.getElementById('overlaySubtitle').textContent =
Sending request to Treechat wallet for ${amountSats} Sats entry...;

    window.parent.postMessage({
        source: 'treechat-ordinal-satoshi-pang-3d',
        type: 'TREECHAT_REQUEST_PAYMENT',
        currency: 'SAT',
        amount: amountSats,
        memo: 'Insert Coin: Satoshi Pang 3D Entry'
    }, '*');
} else {
    // Fallback for standalone / local browser testing
    startOrResumeGame();
}

}

Step 2: Listen for Payment Confirmation from Treechat
When the user approves the micropayment in the Treechat container, Treechat sends a confirmation back into the game iframe:
// Inside index.html — listener for Treechat's receipt
window.addEventListener('message', (event) => {
const data = event.data;
if (!data || typeof data !== 'object') return;

// Treechat parent confirms real Sats received
if (data.type === 'TREECHAT_PAYMENT_SUCCESS') {
    console.log("Real payment confirmed! TXID:", data.txid);
    
    // Unlock game with real credits
    sound.sfxStageClear();
    gameState.lives = 3;
    gameState.running = true;
    gameState.paused = false;
    document.getElementById('menuOverlay').classList.add('hidden');
    loadCityStage(gameState.cityIndex);
} 
else if (data.type === 'TREECHAT_PAYMENT_REJECTED') {
    document.getElementById('overlaySubtitle').textContent = 
        "Payment canceled. Insert coin to play!";
}

});

Step 3: Paying Out Real Sats (Cash-Out or Bounties)
When a player hits a milestone (e.g., clears Wonder Layer 7 or breaks 20 Bitcoins), the game calls the claim hook you already have, passing verification data so Treechat or a tip-bot can process the payment:
function requestRealPayout(satsEarned) {
if (window.parent && window.parent !== window) {
window.parent.postMessage({
source: 'treechat-ordinal-satoshi-pang-3d',
type: 'TREECHAT_CLAIM_PAYOUT',
amountSats: satsEarned,
walletAddress: gameState.walletAddress,
// Verification tokens prevent browser tampering
stageCleared: WORLD_CITIES[gameState.cityIndex].name,
coinsBroken: gameState.coinsBrokenCount,
clientTimestamp: Date.now()
}, '*');
}
}

3 Game Mechanics That Use Real Money on Treechat
Insert Coin (50–100 Sats): Authentic 90s arcade feel. Players spend pennies to buy a run of 3 lives.
Room Jackpot / Pot: 80% of entry fees go into the "Insert Coin Room" pot. The highest weekly scorer or the first to finish Layer 7 takes the accumulated Sats.
P2P Challenge Wagers: Two players in the same Treechat channel stake 250 Sats each. Whoever survives longer or scores more takes the 500 Sats minus the room host fee.

Read more →
14aqJ2…oWGK Custodial · treechat

📻 Now playing on Treechat Music: SMART SOY - PROOF OVER POLITICS.mp4

14aqJ2…oWGK Custodial · treechat

📻 Now playing on Treechat Music: pulse-1782328603700.mp4