Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Slither - slither from Scratch to Python easily
- Tymewalk
-
1000+ posts
Slither - slither from Scratch to Python easily

(click to go to GitHub repo)
It's a Python module that uses PyGame to provide Scratch-like features in Python. It's intended for those new to Python who've used Scratch before, or are trying to make sense of PyGame.
Currently the project is in its early stages, although here's a rough feature list so far:
- Easy-to-use sprite system
- Stage and sprite costumes
- Growing, shrinking, and moving sprites
- Rotation just like Scratch's
- Basic sound support
- Easy ways to display text
- Mouse and keyboard methods, for managing keys pressed and the cursor (thanks @BookOwl!)
- Collision detection
You can install it with
pip install slither
Any help would be appreciated. Thanks!
Last edited by Tymewalk (Sept. 12, 2016 14:31:37)
- BookOwl
-
1000+ posts
Slither - slither from Scratch to Python easily
Sounds great!
Last edited by BookOwl (April 1, 2016 20:22:24)
- Tymewalk
-
1000+ posts
Slither - slither from Scratch to Python easily
Nice idea.
Thanks - I'm currently working on a small test to make sure it works. I'll post the results here. Sounds cool.
- Tymewalk
-
1000+ posts
Slither - slither from Scratch to Python easily
It works! Just 2 problems:Nice idea.Thanks - I'm currently working on a small test to make sure it works. I'll post the results here. Sounds cool.
- You can't set the stage's background color
- There's no easy way to detect quitting the program
- firefang16
-
500+ posts
Slither - slither from Scratch to Python easily
Wow! Sounds really neat. I've always wanted to use Python, but never have.
- Tymewalk
-
1000+ posts
Slither - slither from Scratch to Python easily
Thanks! Wow! Sounds really neat. I've always wanted to use Python, but never have.
Once it has some more features I recommend you look up a simple Python introduction and then try it out - currently it's not much

If you make some changes, make a pull request and I'll add them in! Forking the repo
Last edited by Tymewalk (March 12, 2016 17:11:07)
- Tymewalk
-
1000+ posts
Slither - slither from Scratch to Python easily
Finally I set the stage's background color. So that works now.It works! Just 2 problems:Nice idea.Thanks - I'm currently working on a small test to make sure it works. I'll post the results here. Sounds cool.I'm fixing them now.
- You can't set the stage's background color
- There's no easy way to detect quitting the program
Next up is making some better sprite go-to blocks! Additionally, expanding costume support!
- theonlygusti
-
1000+ posts
Slither - slither from Scratch to Python easily
I don't know if the name fits perfectly, look at the order it all seems to have followed:
SmallTalk
Squeak
Scratch
??? (gaping wound)
SmallTalk
Squeak
Scratch
??? (gaping wound)
- Dylan5797
-
1000+ posts
Slither - slither from Scratch to Python easily
Already have been working on something called pysd for the last few months.
It compiles to scratch, I might embed phosphorus like blob8108 did with tosh.
screenshot:

It compiles to scratch, I might embed phosphorus like blob8108 did with tosh.
screenshot:

Last edited by Dylan5797 (March 13, 2016 17:25:36)
- Icely
-
100+ posts
Slither - slither from Scratch to Python easily
Looks cool! Already have been working on something called pysd for the last few months.
It compiles to scratch, I might embed phosphorus like blob8108 did with tosh.
screenshot:
- Tymewalk
-
1000+ posts
Slither - slither from Scratch to Python easily
I named it Hiss because cats Scratch and pythons Hiss (yes I know it's a terrible pun). I don't know if the name fits perfectly, look at the order it all seems to have followed:
SmallTalk
Squeak
Scratch
??? (gaping wound)
So… Slither then?
Looks pretty cool! Do you have a link? I might be able to help. Already have been working on something called pysd for the last few months.
It compiles to scratch, I might embed phosphorus like blob8108 did with tosh.
screenshot:
- Dylan5797
-
1000+ posts
Slither - slither from Scratch to Python easily
Not yet, the compiler doesn't parse sprite decorators yet, so everything gets screwed up during compiling, also, when I turn on the syntax highlighting, everything goes wonky.I named it Hiss because cats Scratch and pythons Hiss (yes I know it's a terrible pun). I don't know if the name fits perfectly, look at the order it all seems to have followed:
SmallTalk
Squeak
Scratch
??? (gaping wound)
So… Slither then?Looks pretty cool! Do you have a link? I might be able to help. Already have been working on something called pysd for the last few months.
It compiles to scratch, I might embed phosphorus like blob8108 did with tosh.
screenshot:
I think I might keep this private for now, at least until I get stuff working ok.
Sorry.
I'll keep you in mind if I need help, although I'm writing it in JavaScript.
- Tymewalk
-
1000+ posts
Slither - slither from Scratch to Python easily
Just merged the namedCostume branch. Costumes now have names!
You can still use the costume numbers, and you can delete costumes.
You can still use the costume numbers, and you can delete costumes.
- Tymewalk
-
1000+ posts
Slither - slither from Scratch to Python easily
I'm reviewing the remaining 4 items in #2.
Next costume - I don't think this is really required.
Default costume - How about a snake?
Go to front/Go back () layers - At this point, are these really the top priority?
Also, I'm renaming the repo to Slither. So prepare for those changes!
Next costume - I don't think this is really required.
Default costume - How about a snake?
Go to front/Go back () layers - At this point, are these really the top priority?
Also, I'm renaming the repo to Slither. So prepare for those changes!
- Tymewalk
-
1000+ posts
Slither - slither from Scratch to Python easily
I made a mascot!

His name is Snakey since that's what I saved the file as.

His name is Snakey since that's what I saved the file as.
- BookOwl
-
1000+ posts
Slither - slither from Scratch to Python easily
Looks cool! I made a mascot!
His name is Snakey since that's what I saved the file as.
- MooShoeGaming
-
100+ posts
Slither - slither from Scratch to Python easily
Sounds like SmallBasic, which is what I learned to go from Scratch to C#.
- Discussion Forums
- » Advanced Topics
-
» Slither - slither from Scratch to Python easily