Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Slither - slither from Scratch to Python easily
- Tymewalk
-
1000+ posts
Slither - slither from Scratch to Python easily
(If you have a GitHub it's best to talk about this there)Pen would need HTML canvas. Which Python doesn't support as far as I know. So Slither development has been dead for a while (partially due to my inactivity on both Scratch and the project).
But! I'm working on fixing that by going through and cleaning out the issues list.
Here's what I'm working on now:
Remove show() and hide()
Here's what needs to be done:
Remove show() and hide() (Working on it now)
Tutorials
Pen (This needs to be discussed at least)
v0.3.0 (As well as this)
Any Slither contributors out there want to get started? Mainly I'm focusing on the discussions, both are cool ideas that should be
I thought you could draw lines with PyGame, no?
- bjskistad
-
1000+ posts
Slither - slither from Scratch to Python easily
Lol. I'm not familiar with client side Python.(If you have a GitHub it's best to talk about this there)Pen would need HTML canvas. Which Python doesn't support as far as I know. So Slither development has been dead for a while (partially due to my inactivity on both Scratch and the project).
But! I'm working on fixing that by going through and cleaning out the issues list.
Here's what I'm working on now:
Remove show() and hide()
Here's what needs to be done:
Remove show() and hide() (Working on it now)
Tutorials
Pen (This needs to be discussed at least)
v0.3.0 (As well as this)
Any Slither contributors out there want to get started? Mainly I'm focusing on the discussions, both are cool ideas that should be
I thought you could draw lines with PyGame, no?

- frodewin
-
500+ posts
Slither - slither from Scratch to Python easily
Lol. I'm not familiar with client side Python.(If you have a GitHub it's best to talk about this there)Pen would need HTML canvas. Which Python doesn't support as far as I know. So Slither development has been dead for a while (partially due to my inactivity on both Scratch and the project).
But! I'm working on fixing that by going through and cleaning out the issues list.
Here's what I'm working on now:
Remove show() and hide()
Here's what needs to be done:
Remove show() and hide() (Working on it now)
Tutorials
Pen (This needs to be discussed at least)
v0.3.0 (As well as this)
Any Slither contributors out there want to get started? Mainly I'm focusing on the discussions, both are cool ideas that should be
I thought you could draw lines with PyGame, no?You probably can.
Python has a turtle graphics package, I'm not sure if it can be used in PyGame projects but otherwise implementation of pen functions should be straightforward.
https://docs.python.org/3/library/turtle.html
- Jonathan50
-
1000+ posts
Slither - slither from Scratch to Python easily
Um… No. Pen would need HTML canvas. Which Python doesn't support as far as I know.
- bjskistad
-
1000+ posts
Slither - slither from Scratch to Python easily
Said as far as I know. XDUm… No. Pen would need HTML canvas. Which Python doesn't support as far as I know.
- -Io-
-
1000+ posts
Slither - slither from Scratch to Python easily
He meant that you don't need an HTML canvas, not that it supports itSaid as far as I know. XDUm… No. Pen would need HTML canvas. Which Python doesn't support as far as I know.

- BookOwl
-
1000+ posts
Slither - slither from Scratch to Python easily
You are completely right.(If you have a GitHub it's best to talk about this there)Pen would need HTML canvas. Which Python doesn't support as far as I know. So Slither development has been dead for a while (partially due to my inactivity on both Scratch and the project).
But! I'm working on fixing that by going through and cleaning out the issues list.
Here's what I'm working on now:
Remove show() and hide()
Here's what needs to be done:
Remove show() and hide() (Working on it now)
Tutorials
Pen (This needs to be discussed at least)
v0.3.0 (As well as this)
Any Slither contributors out there want to get started? Mainly I'm focusing on the discussions, both are cool ideas that should be
I thought you could draw lines with PyGame, no?
Also, I wont be able to contribute for a while
Last edited by BookOwl (April 27, 2016 20:47:04)
- AppLab
-
100+ posts
Slither - slither from Scratch to Python easily
http://pygame.org/tags/turtleLol. I'm not familiar with client side Python.(If you have a GitHub it's best to talk about this there)Pen would need HTML canvas. Which Python doesn't support as far as I know. So Slither development has been dead for a while (partially due to my inactivity on both Scratch and the project).
But! I'm working on fixing that by going through and cleaning out the issues list.
Here's what I'm working on now:
Remove show() and hide()
Here's what needs to be done:
Remove show() and hide() (Working on it now)
Tutorials
Pen (This needs to be discussed at least)
v0.3.0 (As well as this)
Any Slither contributors out there want to get started? Mainly I'm focusing on the discussions, both are cool ideas that should be
I thought you could draw lines with PyGame, no?You probably can.
Python has a turtle graphics package, I'm not sure if it can be used in PyGame projects but otherwise implementation of pen functions should be straightforward.
https://docs.python.org/3/library/turtle.html
There's a turtle for pygame!
Also sound is fixed for slither.
- Tymewalk
-
1000+ posts
Slither - slither from Scratch to Python easily
Sound fixed? Wonderful!http://pygame.org/tags/turtleLol. I'm not familiar with client side Python.(If you have a GitHub it's best to talk about this there)Pen would need HTML canvas. Which Python doesn't support as far as I know. So Slither development has been dead for a while (partially due to my inactivity on both Scratch and the project).
But! I'm working on fixing that by going through and cleaning out the issues list.
Here's what I'm working on now:
Remove show() and hide()
Here's what needs to be done:
Remove show() and hide() (Working on it now)
Tutorials
Pen (This needs to be discussed at least)
v0.3.0 (As well as this)
Any Slither contributors out there want to get started? Mainly I'm focusing on the discussions, both are cool ideas that should be
I thought you could draw lines with PyGame, no?You probably can.
Python has a turtle graphics package, I'm not sure if it can be used in PyGame projects but otherwise implementation of pen functions should be straightforward.
https://docs.python.org/3/library/turtle.html
There's a turtle for pygame!
Also sound is fixed for slither.
Also, thanks for those links - I'll be sure to look at them.
- Tymewalk
-
1000+ posts
Slither - slither from Scratch to Python easily
The next version is out on PyPi… as 0.2.5.
Yeah. I don't know what went wrong, whenever I try to edit the releases it gives me an error.
Any help would be appreciated, I'd like to fix this.
Yeah. I don't know what went wrong, whenever I try to edit the releases it gives me an error.
Any help would be appreciated, I'd like to fix this.
- Tymewalk
-
1000+ posts
Slither - slither from Scratch to Python easily
Fixed! slither 0.2.2 is now uploaded. Release time! The next version is out on PyPi… as 0.2.5.
Yeah. I don't know what went wrong, whenever I try to edit the releases it gives me an error.
Any help would be appreciated, I'd like to fix this.
- Tymewalk
-
1000+ posts
Slither - slither from Scratch to Python easily
So I think one of the things we should do is create not just Scratch-like functions, but also Slither-specific convenience functions for PyGame, as well.
A lot of simple tasks like cropping a rect can be tricky, and it would be nice to have a function that can help do that.
What do you guys think?
A lot of simple tasks like cropping a rect can be tricky, and it would be nice to have a function that can help do that.
What do you guys think?
Last edited by Tymewalk (May 5, 2016 13:31:05)
- Tymewalk
-
1000+ posts
Slither - slither from Scratch to Python easily
Mega necrobump from the post graveyard So I think one of the things we should do is create not just Scratch-like functions, but also Slither-specific convenience functions for PyGame, as well.
A lot of simple tasks like cropping a rect can be tricky, and it would be nice to have a function that can help do that.
What do you guys think?

So I'm going to start working on this again. I'll be trying to make some PyGame convenience functions as stated above too, since our audience could be a little wider than just former Scratch users.
Also:

Has someone been mentioning us on StackOverflow?

- joefarebrother
-
500+ posts
Slither - slither from Scratch to Python easily
When it implements all of Scratch's features, would it be possible to write a Scratch -> Python compiler?
- Tymewalk
-
1000+ posts
Slither - slither from Scratch to Python easily
Maybe. I'm concerned about variables, I won't be adding things like most operators since they're already built in to pretty much every language. But then there's the question of how to handle them… When it implements all of Scratch's features, would it be possible to write a Scratch -> Python compiler?
I can say for sure the goal is to make it possible to recreate any Scratch project* in Slither, though.
* Except Cloud Projects. You'd need something like PodSixNet for that.
- Tymewalk
-
1000+ posts
Slither - slither from Scratch to Python easily
Currently I'd like to work on collisions. They'd be an extremely useful feature to have, and plus once we're done we can make a physics engine with Slither 
So Scratch has three types of “touching” blocks:
Which can be written like this in Slither:
The main one I want to work on is the "touching “ block.
Should we start with a simple colliderect test or go straight for the ”pixel perfect" method?

So Scratch has three types of “touching” blocks:
<touching [ v] ?>
<touching color [#ff0088] ?>
<color [#00ff00] is touching [#0000ff] ?>
Which can be written like this in Slither:
Sprite.touching( OtherSprite ) # Return True or False Sprite.touchingColor( (255, 0, 0) ) # Accept a color tuple as an argument Sprite.colorTouchesColor( (255, 0, 0), (0, 255, 0) ) # Accept two color tuples as arguments
The main one I want to work on is the "touching “ block.
Should we start with a simple colliderect test or go straight for the ”pixel perfect" method?
- BookOwl
-
1000+ posts
Slither - slither from Scratch to Python easily
@Tymewalk, I would use the colliderect test, it's what scratch uses.
Also, I hope to start working on this some more soon.
Also, I hope to start working on this some more soon.
- Tymewalk
-
1000+ posts
Slither - slither from Scratch to Python easily
OK! Glad to see you're OK @Tymewalk, I would use the colliderect test, it's what scratch uses.
Also, I hope to start working on this some more soon.

Here is the pull request with the collision test. Would you mind leaving your thoughts on it there?
- BookOwl
-
1000+ posts
Slither - slither from Scratch to Python easily
I got pygame to work on my debian laptop, so I'll start back to work on slither now! 

- IcyCoder
-
1000+ posts
Slither - slither from Scratch to Python easily
I think I can help though I have not done Pygame in a while
- Discussion Forums
- » Advanced Topics
-
» Slither - slither from Scratch to Python easily