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

#776 2010-11-14 10:08:43

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: Lets make a new Scratch viewer!

TheSuccessor wrote:

I'll do JS for Pen, Motion, Variables and Control.
Do we want an execution engine like ScratchProcess (the one Scratch uses) or ScratchThread (the one the Java player uses)?

Bump


/* No comment */

Offline

 

#777 2010-11-14 10:49:49

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Lets make a new Scratch viewer!

TheSuccessor wrote:

I'll do JS for Pen, Motion, Variables and Control.
Do we want an execution engine like ScratchProcess (the one Scratch uses) or ScratchThread (the one the Java player uses)?

Sorry, wasn't on to reply.

Well lets see, which is easier and which is faster?

If the Java Player one is faster use that, other wise use the Scratch one.

I thought it working like this:
The code for each sprite is stored like this

All Code (an array)
(  ( "Stage" ("When Flag Clicked", "clear") ) ("Sprite1" ("When Flag Clicked", "Wait |1| second", "Pen down", "Move |10| steps" ) ) )


The execution engine then reads and runs this.


You can now reach me on Twitter @johnnydean1_

Offline

 

#778 2010-11-14 10:56:21

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Lets make a new Scratch viewer!

midnightleopard wrote:

johnnydean1 wrote:

Ok Im back.

I think the arrows and space should be much bigger.

So do I in fact, it was a fast mark up done on Paint!

Is the lower box for project notes?

It could be. It was thinking it could be any JScript that needs to be shown, but project notes would work as well.
yep. I think that would be a great place for project notes.
Maybe we could have it like:
Top Line = Author
2nd Line = Last date edited
3rd Line = ----------------
Rest of it = Project Notes




iOS

Whats that?
iOS the the operating system that runs on the apple iPhone, iPod Touch, and the iPad.
See below.

Well, I haven't tested javascript prompts on iOS yet. That will work though. I meant a text box but a prompt may be better.

Java Script prompts work on a DS and DSi Opera browser.
It works on iOS, I justed tested it. We will use those for ask prompts.
Ok thats cool. I haven't got a iPod/Pad/Phone so I never knew.

We will keep the arrow and space key things though.

Good I hope we will, that should make most projects playable.
Deffinately most projects. Of course, it will also work with regular keyboard input. This is just for touch screen devices.
Thats good. Also going along those lines. When the viewer is run, could we have it say if the project had a global variable called "Viewer", it sets it to true at the begining. So projects could use alternate controls when viewed in the viewer.

Also I hope that we can use the viewer for two things:
1.) Opening projects on your computer
2.) Entering a Scratch username and project number, and opening a project from the Scratch website.
Yep. Shouldn't be too hard, we can use php to read from the specified file, then find the .sb (which I know is hidden in there somewhere) and then decode it.
If you take a project URL such as:
http://scratch.mit.edu/projects/johnnydean1/1411513

then add "/download" on the end
http://scratch.mit.edu/projects/johnnydean1/1411513/download

you get the project!


What do you think?

Okay. I will start reading the document now.

Last edited by johnnydean1 (2010-11-14 10:59:30)


You can now reach me on Twitter @johnnydean1_

Offline

 

#779 2010-11-14 11:07:40

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Lets make a new Scratch viewer!

Wait! How about a Turbo on/off checkbox on the top?


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#780 2010-11-14 11:09:49

Daffy22
Scratcher
Registered: 2008-12-15
Posts: 500+

Re: Lets make a new Scratch viewer!

If your still interested heres a keyboard with buttons that can then be adapted to do something onclick... http://scratchhtmlviewer.net23.net/keys.html  tongue


http://img201.imageshack.us/img201/1784/logosmalle.png
"Spectacular - 5 Star" -  CNET.com Editor.

Offline

 

#781 2010-11-14 11:20:07

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: Lets make a new Scratch viewer!

Daffy22 wrote:

If your still interested heres a keyboard with buttons that can then be adapted to do something onclick... http://scratchhtmlviewer.net23.net/keys.html  tongue

very cool! We don't need it because we are using prompts. Keep it, we may change out minds.


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#782 2010-11-14 11:25:16

Daffy22
Scratcher
Registered: 2008-12-15
Posts: 500+

Re: Lets make a new Scratch viewer!

midnightleopard wrote:

Daffy22 wrote:

If your still interested heres a keyboard with buttons that can then be adapted to do something onclick... http://scratchhtmlviewer.net23.net/keys.html  tongue

very cool! We don't need it because we are using prompts. Keep it, we may change out minds.

would you like me to make the arrow keys too?  smile


http://img201.imageshack.us/img201/1784/logosmalle.png
"Spectacular - 5 Star" -  CNET.com Editor.

Offline

 

#783 2010-11-14 11:27:01

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: Lets make a new Scratch viewer!

Hey I don't know the account details to the site. Can you guys email it to this adress?
[email address removed by moderator]

Last edited by cheddargirl (2010-11-15 10:58:58)


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#784 2010-11-14 11:27:53

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Lets make a new Scratch viewer!

Daffy22 wrote:

Would you like me to make the arrow keys too?  smile

Do the arrows in a simmilar way, laid out like I said!

Wait! How about a Turbo on/off checkbox on the top?

I would say around the box for project notes, but good idea!


You can now reach me on Twitter @johnnydean1_

Offline

 

#785 2010-11-14 11:50:52

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Lets make a new Scratch viewer!

johnnydean1 wrote:

Wait! How about a Turbo on/off checkbox on the top?
I would say around the box for project notes, but good idea!

That's getting ahead of ourselves.


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#786 2010-11-14 11:52:40

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Lets make a new Scratch viewer!

johnnydean1 wrote:

TheSuccessor wrote:

I'll do JS for Pen, Motion, Variables and Control.
Do we want an execution engine like ScratchProcess (the one Scratch uses) or ScratchThread (the one the Java player uses)?

Sorry, wasn't on to reply.

Well lets see, which is easier and which is faster?

If the Java Player one is faster use that, other wise use the Scratch one.

I thought it working like this:
The code for each sprite is stored like this

All Code (an array)
(  ( "Stage" ("When Flag Clicked", "clear") ) ("Sprite1" ("When Flag Clicked", "Wait |1| second", "Pen down", "Move |10| steps" ) ) )


The execution engine then reads and runs this.

I would just make a Thread for every script and step the Thread every frame. Follow?


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#787 2010-11-14 12:00:57

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Lets make a new Scratch viewer!

MathWizz wrote:

johnnydean1 wrote:

TheSuccessor wrote:

I'll do JS for Pen, Motion, Variables and Control.
Do we want an execution engine like ScratchProcess (the one Scratch uses) or ScratchThread (the one the Java player uses)?

Sorry, wasn't on to reply.

Well lets see, which is easier and which is faster?

If the Java Player one is faster use that, other wise use the Scratch one.

I thought it working like this:
The code for each sprite is stored like this

All Code (an array)
(  ( "Stage" ("When Flag Clicked", "clear") ) ("Sprite1" ("When Flag Clicked", "Wait |1| second", "Pen down", "Move |10| steps" ) ) )


The execution engine then reads and runs this.

I would just make a Thread for every script and step the Thread every frame. Follow?

Nice.


You can now reach me on Twitter @johnnydean1_

Offline

 

#788 2010-11-14 16:20:42

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Lets make a new Scratch viewer!

Hows everyone comming along?


You can now reach me on Twitter @johnnydean1_

Offline

 

#789 2010-11-14 16:36:53

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Lets make a new Scratch viewer!

Great!


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#790 2010-11-14 17:01:36

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Lets make a new Scratch viewer!

ok, what have you done so far?


You can now reach me on Twitter @johnnydean1_

Offline

 

#791 2010-11-14 17:02:37

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Lets make a new Scratch viewer!

Where exactly are the scripts in the output from the reader?


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#792 2010-11-14 17:06:54

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Lets make a new Scratch viewer!

ScratchReallyROCKS wrote:

Where exactly are the scripts in the output from the reader?

I'll upload the new version then explain. Hang on...


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#793 2010-11-14 17:20:27

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Lets make a new Scratch viewer!

MathWizz wrote:

ScratchReallyROCKS wrote:

Where exactly are the scripts in the output from the reader?

I'll upload the new version then explain. Hang on...

Thanks!

EDIT: I see you added a size warning.

Last edited by ScratchReallyROCKS (2010-11-14 17:26:33)


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#794 2010-11-14 17:25:18

meowmeow55
Scratcher
Registered: 2008-12-24
Posts: 1000+

Re: Lets make a new Scratch viewer!

Just a thought here...

It seems that the posts in this thread are getting a little, er, close together in terms of posting time. Perhaps you should set up a chatroom or Hamachi network so that you can get more work done when you are all online?


Yawn.

Offline

 

#795 2010-11-14 17:27:22

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Lets make a new Scratch viewer!

meowmeow55 wrote:

Just a thought here...

It seems that the posts in this thread are getting a little, er, close together in terms of posting time. Perhaps you should set up a chatroom or Hamachi network so that you can get more work done when you are all online?

We could set one up on the website....hmm....who has access to the files on the website anyway?


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#796 2010-11-14 18:24:36

TriTeam
Scratcher
Registered: 2009-05-05
Posts: 100+

Re: Lets make a new Scratch viewer!

markyparky56 wrote:

johnnydean1 wrote:

How about we use a combination of:
HTML
PHP
J-Script
And others

To make a new Scratch viewer.

It would not use Flash, Squeak, Java or any others.

If we design it to scale to the screen then anything we view it on would be able to view Scratch projects.

If we made it using these we could view any project on a:
I-Pod
I-Phone
DS (with browser game)
DSi
DSi XL
Wii
COMPUTER
And anything else with a web browser!


So can we make it?

Bob the Builder said:
Yes we can!

Ok, one thing you need to know is that HTML is how you code webpages, not applications on the webpage. Php... i'm sure that thats just like HTML, just more advanced, though it might be possible... JavaScrpt is like an extension to HTML (sortta) so I'm not exactly sure how you could write a project viewer with it. I personaly think that this is an impossible task forsaking Flash and Java.

Uh, dude? HTML5? Hello?


http://imgur.com/EjPVl.pngMWA HA HA!

Offline

 

#797 2010-11-14 18:34:20

TriTeam
Scratcher
Registered: 2009-05-05
Posts: 100+

Re: Lets make a new Scratch viewer!

johnnydean1 wrote:

If we made it using these we could view any project on a:
I-Pod
I-Phone
DS (with browser game)
DSi
DSi XL
Wii
Xbox
BlackBerry
Other smartphones (Windows Phone, Nokia, Android, etc.)
iPad
Other tablets (Samsung Tab, HP Slate, etc.)

And anything else with a web browser!

bump


http://imgur.com/EjPVl.pngMWA HA HA!

Offline

 

#798 2010-11-14 18:35:28

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Lets make a new Scratch viewer!

ScratchReallyROCKS wrote:

MathWizz wrote:

ScratchReallyROCKS wrote:

Where exactly are the scripts in the output from the reader?

I'll upload the new version then explain. Hang on...

Thanks!

EDIT: I see you added a size warning.

The ScratchStageMorph is in the var "object" and the project info is in the var "info".


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#799 2010-11-14 19:48:02

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Lets make a new Scratch viewer!

MathWizz wrote:

ScratchReallyROCKS wrote:

MathWizz wrote:

I'll upload the new version then explain. Hang on...

Thanks!

EDIT: I see you added a size warning.

The ScratchStageMorph is in the var "object" and the project info is in the var "info".

Okay. Sprites?


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#800 2010-11-14 20:23:40

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Lets make a new Scratch viewer!

ScratchReallyROCKS wrote:

MathWizz wrote:

ScratchReallyROCKS wrote:

Thanks!

EDIT: I see you added a size warning.

The ScratchStageMorph is in the var "object" and the project info is in the var "info".

Okay. Sprites?

Sprites are..? Aha! I can't find them because it didn't fix the Array right. XD NOW, they are in "object.variables[2]".

BTW: I haven't finished it yet so some things might not work yet. I you find something, tell me.

EDIT: "object.variables[2]" is the submorphs, not sprites. "object.variables[16]" is the sprites.

Last edited by MathWizz (2010-11-14 21:16:23)


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

Board footer