a Python Scratch Interpreter based on Kurt
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
skip
.gitignore
LICENSE
README.md
setup.py
skip_pygame.py

README.md

SKIP

SKIP - a Python Scratch Interpreter based on Kurt.

Status

Experimental.

Most of the 1.4 blocks are implemented, except for:

  • text-related: "say", "ask", variable/list watchers
  • sounds & instruments
  • graphic effects other than "ghost"

Installation

SKIP requires Pygame for graphics.

With a proper python environment (one which has pip available), simply run:

$ pip install skip

Which will download SKIP and its dependencies.

Alternatively, download the compressed archive from PyPI, extract it, and inside it run:

$ python setup.py install

Usage

Run it from Terminal, passsing the path to a Scratch file:

$ python skip/pygame_screen.py game.sb

A graphics window will open showing the stage. You can type scripts into the terminal window to execute them while the project is running.

It also includes a simple console interface. Example usage:

$ python skip/console_screen.py
Ctrl+D or `;` to evaluate input
Extra commands: start, stop
=>Sprite1
-----
ask "What's your name?" and wait
say join "Hello, " join answer "!"
;
...
Sprite1 asks: What's your name?
? blob
Sprite1: say u'Hello, blob!'
-----

Dev

All of the graphics-related stuff is in a separate file, pygame_screen.py, so it should be possible to implement the interpreter for other graphics libraries (e.g. wxPython).

License: GPL v3