Creation of asset "Stablecoin for Games (SCFG)" In review
| New/Edit | |
|---|---|
| Title | Stablecoin for Games (SCFG) |
| Description |
Stablecoin for Games (SCFG) lets players tip you or buy unlocks with USDC or USDT, and the money goes straight to your own wallet. There is no server to run, no account to create and no middleman taking a cut: the addon watches the blockchain itself and unlocks the item once the payment is confirmed. Supported networks: Ethereum, Arbitrum and Polygon (USDC and USDT), Base (USDC), Arc (USDC) and Solana (USDC and USDT). You can also add any other EVM chain yourself. A testnet mode lets you try everything without real money. What players see A payment sheet over your game. They pick an amount (for tips), a network, and a way to pay: - Browser wallet: MetaMask, Rabby or another extension, through a checkout page that opens in their browser (desktop) or the wallet already in the page (web export). - Phone wallet: scan a QR code. - Manual transfer: the exact amount and address to send from an exchange or any wallet, plus a field to paste the transaction hash. They can keep playing while the payment confirms. A "Restore purchases" screen brings a purchase back on a new device from its transaction hash. What you get - One autoload, Scfg: configure(), add_item(), await pay("unlock" or "tip"), await restore(), owns(), has_tipped(), tip_total(), receipts() and export_receipts(). - Signals payment_resolved and receipts_changed, and typed results (ScfgPaymentResult, ScfgRestoreResult). - Receipts saved in user://, plus a copy in the browser's localStorage on web exports. owns() is instant and works offline. - Your logo and accent color, your own Theme, or your own scene in place of the payment sheet. - Every text goes through tr(). A .pot template is included for translations. Requirements Godot 4.3 or newer, tested on 4.3 and 4.7.2. Pure GDScript: no GDExtension, no C#. Works in desktop builds and web exports. Mobile is best effort and not yet verified. Good to know Without a server, unlocks are honour-grade: a determined player can bypass them. That suits tips, supporter rewards and pay-what-you-want unlocks. Don't sell anything you can't afford to lose to a bypass. The addon is still in preview for Godot. Please report problems on the issue tracker. Getting started Enable the plugin under Project > Project Settings > Plugins. It registers the Scfg autoload. Then: Scfg.configure({"wallet": "0xYourWallet", "testnet": true}) Scfg.add_item("chapter2", {"code": 1, "price": "4.99", "token": "USDC", "title": "Chapter 2"}) var result := await Scfg.pay("unlock", {"item": "chapter2"}) The guide is included as addons/scfg/README.md. Full docs: https://jrpg.com/stablecoinforgames/docs/ The repository has a showcase project (godot/showcase) that tours the whole API on testnets. MIT licensed. Made by JRPG Crypto Games. |
| Category | Scripts |
| License | MIT |
| Repository Provider | Custom |
| Repository Url | https://github.com/Repulse-Game-Studio/jrpg-stablecoin-games |
| Issues Url | https://github.com/Repulse-Game-Studio/jrpg-stablecoin-games/issues |
| Godot version | Godot 4.3 |
| Version String | 0.2.0 |
| Download Commit | https://github.com/Repulse-Game-Studio/jrpg-stablecoin-games/releases/download/v0.2.0/scfg-godot-0.2.0.zip |
| Download Url (Computed) | https://github.com/Repulse-Game-Studio/jrpg-stablecoin-games/releases/download/v0.2.0/scfg-godot-0.2.0.zip |
| Icon Url |
https://raw.githubusercontent.com/Repulse-Game-Studio/jrpg-stablecoin-games/main/godot/assetlib/icon.png
|