This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-04-21 00:47:33

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Simplicity: Scratch in Processing

Google Code site
Source code of most recent version

Heyo! For a while I've been working on this project which I call Simplicity (or PSimplicity, formally). It's basically a library-type-thing written in the Java-based language Processing (also originally made by people at MIT!) that has all of Scratch's blocks as well as datatypes like Sprites, Stages, Variables, and Lists, as functions and classes that can be used in Processing sketches. It would also be nice to eventually implement blocks and features available in Scratch modifications, but for right now we're focusing on the original program.
One of the main goals for this project is to have a good transitional programming language for Scratchers that want to get into coding as opposed to block programming but are used to the Scratch model. In theory, one could easily take this type of path:
Scratch ⇒ PSimplicity ⇒ Processing ⇒ Java

So far I've done a very large majority of the coding, although PF has contributed a few things. It would be nice to get some other people working on things, especially things that I'm not really sure how to do. So without further ado, how you, yes you! can help with the project.
Oh and I guess we may eventually compile this with Java or something to make it a more library library or whatever.



People who can program in Processing (or Java, you can adapt your skillz):
Here is a fairly straightforward spreadsheet of a lot of the blocks in Scratch (but not all cos I'm dumb) and their various states of completion in the program. It would be great if you could work on those things. If you leave a message on the Google Code site above, I can add you to the project and you can directly upload your changes via SVN. Any questions? No? Good. If you have any other ideas for things that need to be done, feel free to say something.

Note:
LOL NOTE GEDDIT hahahahahaha
For the note blocks, I'm planning on using this library, although again I am open to suggestions. All of the functions related to notes and drums will most likely be included in a separate file which will be available for download separately if needed, with instructions on how to download SoundCipher included.


People who can't program Processing & still want to help:
If you can read Processing fairly well, feel free to start documenting functions and classes. That'll take forever and it'd be nice to have help. If you want to work on this, shout at me on Google Code or here or something and I'll add you to the project so you can edit the wiki on there.
If you can't read Processing, feel free to test the library, give suggestions, and find bugs. We need you people!!

TL;DR I make thing

okay I am so done writing this post bluhh so long bluhh

Developer pplz:
veggie (coding, documentation)
PF (coding, ???)

Last edited by veggieman001 (2012-04-21 11:29:50)


Posts: 20000 - Show all posts

Offline

 

#2 2012-04-21 01:22:44

slinger
Scratcher
Registered: 2011-06-21
Posts: 1000+

Re: Simplicity: Scratch in Processing

Awesome! I'll see if I can get my brother to code as he sorta knows processing  tongue

Last edited by slinger (2012-04-21 01:30:16)


http://s0.bcbits.com/img/buttons/bandcamp_130x27_blue.png

Offline

 

#3 2012-04-21 02:02:24

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Simplicity: Scratch in Processing

slinger wrote:

Awesome! I'll see if I can get my brother to code as he sorta knows processing  tongue

Cool  smile


Posts: 20000 - Show all posts

Offline

 

#4 2012-04-21 02:54:52

s_federici
Scratcher
Registered: 2007-12-18
Posts: 500+

Re: Simplicity: Scratch in Processing

Very nice project  smile

Offline

 

#5 2012-04-21 04:40:22

s_federici
Scratcher
Registered: 2007-12-18
Posts: 500+

Re: Simplicity: Scratch in Processing

veggieman001 wrote:

Here is a fairly straightforward spreadsheet

The link to the spreadsheet is broken.

Offline

 

#6 2012-04-21 08:15:24

jurk
Scratcher
Registered: 2010-05-06
Posts: 100+

Re: Simplicity: Scratch in Processing

I know a bit of processing hope to learn more before helping because I am not good at it yet  big_smile


http://dl.dropbox.com/u/54228408/cool.png

Offline

 

#7 2012-04-21 10:01:39

technoboy10
Scratcher
Registered: 2007-08-25
Posts: 1000+

Re: Simplicity: Scratch in Processing

big_smile  This looks cool! I'm always looking for good transitional languages from Scratch.


So long, 1.4.
http://goo.gl/3JEV9

Offline

 

#8 2012-04-21 11:11:56

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Simplicity: Scratch in Processing

s_federici wrote:

veggieman001 wrote:

Here is a fairly straightforward spreadsheet

The link to the spreadsheet is broken.

Fixed.

And thanks, everyone.  smile


Posts: 20000 - Show all posts

Offline

 

#9 2012-04-21 11:25:45

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: Simplicity: Scratch in Processing

veggieman001 wrote:

s_federici wrote:

veggieman001 wrote:

Here is a fairly straightforward spreadsheet

The link to the spreadsheet is broken.

Fixed.

And thanks, everyone.  smile

Nope, still doesn't work. I think you need to press share and then copy the url it gives you or something.

Edit: actually, I think it's being filtered in some way when you post it.

Last edited by rookwood101 (2012-04-21 11:26:28)


http://i.imgur.com/zeIZW.png

Offline

 

#10 2012-04-21 11:29:12

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Simplicity: Scratch in Processing

rookwood101 wrote:

veggieman001 wrote:

s_federici wrote:


The link to the spreadsheet is broken.

Fixed.

And thanks, everyone.  smile

Nope, still doesn't work. I think you need to press share and then copy the url it gives you or something.

Edit: actually, I think it's being filtered in some way when you post it.

Yeah, it looks like it's because it contains a somewhat obscene string. I'll bitly it.


Posts: 20000 - Show all posts

Offline

 

#11 2012-04-21 12:07:25

Jwosty
Scratcher
Registered: 2009-12-19
Posts: 500+

Re: Simplicity: Scratch in Processing

I've been thinking about learning Processing, so if I do I could help  smile
---
I think this and my project, Blockset, have the same/similar goal (to go from block-based programming to text-based) xD

EDIT: yay, I am another open-source project! I'm a fan of those

Last edited by Jwosty (2012-04-21 12:09:52)


http://i39.tinypic.com/18ert5.png Google it.  smile

Offline

 

#12 2012-04-21 12:54:37

slinger
Scratcher
Registered: 2011-06-21
Posts: 1000+

Re: Simplicity: Scratch in Processing

Jwosty wrote:

I've been thinking about learning Processing, so if I do I could help  smile
---
I think this and my project, Blockset, have the same/similar goal (to go from block-based programming to text-based) xD

EDIT: yay, I am another open-source project! I'm a fan of those

Open source rules all!  smile


http://s0.bcbits.com/img/buttons/bandcamp_130x27_blue.png

Offline

 

#13 2012-04-21 12:58:22

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Simplicity: Scratch in Processing

I concur, open source is brilliant and I think it fits well with Scratch  smile


Posts: 20000 - Show all posts

Offline

 

#14 2012-04-21 13:35:08

Jwosty
Scratcher
Registered: 2009-12-19
Posts: 500+

Re: Simplicity: Scratch in Processing

Yeah, what both of you said  big_smile


http://i39.tinypic.com/18ert5.png Google it.  smile

Offline

 

#15 2012-04-21 14:40:14

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: Simplicity: Scratch in Processing

Sorry, yeah.
I know I was supposed to be coding. But I can't have access to that computer. 3:

Offline

 

#16 2012-04-21 15:03:17

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Simplicity: Scratch in Processing

ProgrammingFreak wrote:

Sorry, yeah.
I know I was supposed to be coding. But I can't have access to that computer. 3:

It's definitely alright. Only do what you can do.  smile
If you want, you could download the source from GC and Processing onto the comp you're using right now, if you can. No need to, though.


Posts: 20000 - Show all posts

Offline

 

#17 2012-04-21 18:49:17

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Simplicity: Scratch in Processing

I've added a wiki page on the Google Code site on how to get started programming if anyone's interested.


Posts: 20000 - Show all posts

Offline

 

#18 2012-04-22 16:50:52

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: Simplicity: Scratch in Processing

veggieman001 wrote:

ProgrammingFreak wrote:

Sorry, yeah.
I know I was supposed to be coding. But I can't have access to that computer. 3:

It's definitely alright. Only do what you can do.  smile
If you want, you could download the source from GC and Processing onto the comp you're using right now, if you can. No need to, though.

Alright I have access.
Could we have a todo list? It makes it easier for me to actually work on something. :3

Offline

 

#19 2012-04-22 16:58:51

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Simplicity: Scratch in Processing

Okey dokey.

I am working on rotation & things of the like.

Things to do:
Note blocks w/ library
Pen
Timer
Say/think with time
Graphic effects
Layers

Document


Posts: 20000 - Show all posts

Offline

 

#20 2012-04-22 17:03:02

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: Simplicity: Scratch in Processing

Alright, thanks. Whats the 'document' by the way?

By the way, you should probably add my code for say if you think it's okay.

Offline

 

#21 2012-04-22 17:05:52

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Simplicity: Scratch in Processing

This seems very interesting, veggieman, I'll follow this with interest  smile

P.S. Are you vegetarian? It's been bugging me for weeks, for no reason  tongue


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#22 2012-04-22 17:07:09

puppetadventurer
Scratcher
Registered: 2011-02-20
Posts: 1000+

Re: Simplicity: Scratch in Processing

I made this with this:

Code:

//cat_game
//by puppet
Variable score = new Variable(0);

Sprite cat;
Sprite cheerio;
Sprite ricekrispies;
Stage stage;
void setup(){
  size(640,480);
  ricekrispies = new Sprite("http://i.imgur.com/WjWRX.png",-100,-100);
  cheerio = new Sprite("http://i.imgur.com/fZvWr.png",100,100);
  cat = new Sprite("http://i.imgur.com/dOj9r.png",0,0);
  stage = new Stage("http://farm1.staticflickr.com/85/209708058_b5a5fb07a6_z.jpg?zz=1");
}
void draw(){  
  stage.update();
  cat.update();
  cheerio.update();
  ricekrispies.update();
  textSize(20);
  text(score.value.toString(),-300,-200);
  if (cat.Touching(ricekrispies)){
   score.ChangeBy(1);
   ricekrispies.GoTo((PickRandom(-320,320)),(PickRandom(-240,240)));
    }
  if (cat.Touching(cheerio)){
   score.ChangeBy(1);
   cheerio.GoTo((PickRandom(-320,320)),(PickRandom(-240,240)));
    }
  // move that cat around!
  if (KeyPressed("down")&& !KeyPressed("up")){
   cat.ChangeYBy(-9);
       }  
       if (KeyPressed("up")&& !KeyPressed("down")){
   cat.ChangeYBy(9);
       } 
         if (KeyPressed("right")&& !KeyPressed("left")){
   cat.ChangeXBy(9);
       }  
       if (KeyPressed("left")&& !KeyPressed("right")){
   cat.ChangeXBy(-9);
       } 
}

@sparks: he's not

Last edited by puppetadventurer (2012-04-22 17:07:40)


3

Offline

 

#23 2012-04-22 17:08:38

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Simplicity: Scratch in Processing

ProgrammingFreak wrote:

Alright, thanks. Whats the 'document' by the way?

By the way, you should probably add my code for say if you think it's okay.

Document how to use all the functions  tongue

sparks wrote:

This seems very interesting, veggieman, I'll follow this with interest  smile

P.S. Are you vegetarian? It's been bugging me for weeks, for no reason  tongue

I am in fact not a vegetarian, although I don't really eat much meat and don't care for a lot of meat.


Posts: 20000 - Show all posts

Offline

 

#24 2012-04-22 17:09:48

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: Simplicity: Scratch in Processing

sparks wrote:

This seems very interesting, veggieman, I'll follow this with interest  smile

P.S. Are you vegetarian? It's been bugging me for weeks, for no reason  tongue

Hey, I'm working on it too. D:<   Jk.
Yes, this will be very grand when we finish. :3

Offline

 

#25 2012-04-23 08:27:15

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: Simplicity: Scratch in Processing

Bump.  wink

Offline

 

Board footer