Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A WIP story-format in Twine, combining elements of Sugarcube with Python-like syntax.

License

BwendyGames/PyCube

PyCube

logo

A work-in-progress story-format in Twine, combining elements of Sugarcube with Python-like syntax.

Big thankyou and shoutout to Sugarcube for making game-making accesible to so many.

Make sure to checkout the Documentation!

Download the forked Twine Editor for Windows, for increased PyCube support!

See it in action, with an example, and it's source code.


Features

  • Python like-syntax, if / else blocks, using indentation.
  • Link to other passages by typing [[link text | passage]] or [[passage]].
  • Variables that can you display like {var} directly in the page.
  • A growing number of bult-in cool macros.

Examples

In a passage titled Init:

$gold = 4
$health = 10

In the start passage:

Gold: {gold}
Health: {health}
Inventory: {inventory}

[[Make More Money | Next]]

In the Next passage:

$gold += 1
You got more gold!

if gold > 5:
	Big money.
else:
	Money is tight.

[[Return|Start]] 

The end result!

2025-05-29 19-25-36


How to Use

Add the story format to your formats in the Twine editor:

Screenshot 2025-05-29 192827

The PyCube URL is: https://pycube.org/format.js

image

About

A WIP story-format in Twine, combining elements of Sugarcube with Python-like syntax.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published