Discuss Scratch

Tymewalk
Scratcher
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
or you can check the latest “development version” on GitHub.

Any help would be appreciated. Thanks!

Last edited by Tymewalk (Sept. 12, 2016 14:31:37)

Jonathan50
Scratcher
1000+ posts

Slither - slither from Scratch to Python easily

Nice idea.
BookOwl
Scratcher
1000+ posts

Slither - slither from Scratch to Python easily

Sounds great!

Last edited by BookOwl (April 1, 2016 20:22:24)

Tymewalk
Scratcher
1000+ posts

Slither - slither from Scratch to Python easily

Jonathan50 wrote:

Nice idea.

BookOwl wrote:

Sounds cool.
Thanks - I'm currently working on a small test to make sure it works. I'll post the results here.
Tymewalk
Scratcher
1000+ posts

Slither - slither from Scratch to Python easily

Tymewalk wrote:

Jonathan50 wrote:

Nice idea.

BookOwl wrote:

Sounds cool.
Thanks - I'm currently working on a small test to make sure it works. I'll post the results here.
It works! Just 2 problems:
  • You can't set the stage's background color
  • There's no easy way to detect quitting the program
I'm fixing them now.
flutehamster
Scratcher
500+ posts

Slither - slither from Scratch to Python easily

Cool idea…
DrKat123
Scratcher
1000+ posts

Slither - slither from Scratch to Python easily

Forking the repo
firefang16
Scratcher
500+ posts

Slither - slither from Scratch to Python easily

Wow! Sounds really neat. I've always wanted to use Python, but never have.
Tymewalk
Scratcher
1000+ posts

Slither - slither from Scratch to Python easily

firefang16 wrote:

Wow! Sounds really neat. I've always wanted to use Python, but never have.
Thanks!
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

DrKat123 wrote:

Forking the repo
If you make some changes, make a pull request and I'll add them in!

Last edited by Tymewalk (March 12, 2016 17:11:07)

Tymewalk
Scratcher
1000+ posts

Slither - slither from Scratch to Python easily

Tymewalk wrote:

Tymewalk wrote:

Jonathan50 wrote:

Nice idea.

BookOwl wrote:

Sounds cool.
Thanks - I'm currently working on a small test to make sure it works. I'll post the results here.
It works! Just 2 problems:
  • You can't set the stage's background color
  • There's no easy way to detect quitting the program
I'm fixing them now.
Finally I set the stage's background color. So that works now.
Next up is making some better sprite go-to blocks! Additionally, expanding costume support!
theonlygusti
Scratcher
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)
Dylan5797
Scratcher
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:

Last edited by Dylan5797 (March 13, 2016 17:25:36)

Icely
Scratcher
100+ posts

Slither - slither from Scratch to Python easily

Dylan5797 wrote:

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:
Looks cool!
Tymewalk
Scratcher
1000+ posts

Slither - slither from Scratch to Python easily

theonlygusti wrote:

I don't know if the name fits perfectly, look at the order it all seems to have followed:

SmallTalk
Squeak
Scratch
??? (gaping wound)
I named it Hiss because cats Scratch and pythons Hiss (yes I know it's a terrible pun).
So… Slither then?

Dylan5797 wrote:

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:
Looks pretty cool! Do you have a link? I might be able to help.
Dylan5797
Scratcher
1000+ posts

Slither - slither from Scratch to Python easily

Tymewalk wrote:

theonlygusti wrote:

I don't know if the name fits perfectly, look at the order it all seems to have followed:

SmallTalk
Squeak
Scratch
??? (gaping wound)
I named it Hiss because cats Scratch and pythons Hiss (yes I know it's a terrible pun).
So… Slither then?

Dylan5797 wrote:

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:
Looks pretty cool! Do you have a link? I might be able to help.
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 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
Scratcher
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.
Tymewalk
Scratcher
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!
Tymewalk
Scratcher
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.
BookOwl
Scratcher
1000+ posts

Slither - slither from Scratch to Python easily

Tymewalk wrote:

I made a mascot!

His name is Snakey since that's what I saved the file as.
Looks cool!
MooShoeGaming
Scratcher
100+ posts

Slither - slither from Scratch to Python easily

Sounds like SmallBasic, which is what I learned to go from Scratch to C#.

Powered by DjangoBB