Metadata-Version: 2.4
Name: scfg-renpy
Version: 0.1.3
Summary: USDC/USDT tips and unlocks for Ren'Py games, paid straight to your wallet. No server, no tokens, no NFTs. Installs the plugin into your project.
Project-URL: Homepage, https://jrpg.com/stablecoinforgames/
Project-URL: Documentation, https://jrpg.com/stablecoinforgames/docs/
Project-URL: Source, https://github.com/Repulse-Game-Studio/jrpg-stablecoin-games
Project-URL: Changelog, https://github.com/Repulse-Game-Studio/jrpg-stablecoin-games/releases
License-Expression: MIT
License-File: LICENSE
Keywords: arbitrum,arc,base,ethereum,game-monetization,payments,polygon,ren'py,renpy,solana,stablecoin,tips,usdc,usdt,visual-novel
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Games/Entertainment
Classifier: Topic :: Office/Business :: Financial
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# Stablecoin for Games

Take tips and sell unlocks in **USDC** and **USDT** inside your Ren'Py game, on Ethereum,
Arbitrum, Polygon, Base, Arc or Solana. The player's wallet pays yours directly. There is no
store, account or server in between: the game watches the blockchain itself. Prices are in
dollars. There are no tokens to buy and no NFTs.

![A player tips 3 USDC on Arc in Ruby Dreams: pick an amount, pick a network, scan the QR code, payment confirmed](https://raw.githubusercontent.com/Repulse-Game-Studio/jrpg-stablecoin-games/main/.github/media/tip-arc.gif)

This package installs the plugin into your Ren'Py project. Ren'Py only loads code from a
game's own `game/` folder, so the plugin is copied there rather than installed into Python.

## Install

From your Ren'Py project folder (the one that contains `game/`):

```bash
uvx scfg-renpy install .
```

or, with pipx: `pipx run scfg-renpy install .`, or with Node: `npx scfg-renpy install .`

That adds:

```
game/scfg/                        (screens, API, browser checkout page)
game/python-packages/scfg_core/   (the engine; plain Python)
```

## Update

```bash
uvx scfg-renpy update .
```

It replaces those two folders with the latest version. Your own files, your configuration
and your players' purchases are not touched.

## Use it

```renpy
init python:
    scfg.configure(wallet="0xYourWallet", testnet=True)
    scfg.add_item("chapter2", code=1, price="4.99", token="USDC", title="Chapter 2")

label end_of_chapter1:
    $ result = scfg.pay("unlock", item="chapter2")
    if scfg.owns("chapter2"):
        jump chapter2
```

Requires Ren'Py 8.2 or newer. Read the
[developer guide](https://jrpg.com/stablecoinforgames/docs/developers/install) and the
[security notes](https://jrpg.com/stablecoinforgames/docs/developers/security) before you
sell anything: without a server, unlocks are honour-grade.

- Website: https://jrpg.com/stablecoinforgames/
- Docs: https://jrpg.com/stablecoinforgames/docs/
- Source and release zips: https://github.com/Repulse-Game-Studio/jrpg-stablecoin-games
- itch.io: https://repulse-games.itch.io/stablecoin-for-games
- npm: https://www.npmjs.com/package/scfg-renpy
- License: MIT
