Skip to content
Boyney edited this page Feb 6, 2023 · 2 revisions

Welcome! You've reached the Spryg docs.

Here's a basic rundown of how Spryg works. Your code will consist mainly of one file, game.py. Spryg looks for this file on startup and will run the function run contained within. It will pass on argument, the Spryg library class, to this function. A basic structure would look like this:

game.py

def run(spryg):
    spryg.screen.text("got spryg?", 0, 0, 0xFFFF)
    
    spryg.flip()

You can have different files if you want, but for most games you'll probably only need one.

Now that you where to start, click any of the other pages to look for docs for the Spryg library.

Clone this wiki locally