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

#751 2010-11-13 16:33:51

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

Re: Lets make a new Scratch viewer!

What can I do now

Offline

 

#752 2010-11-13 16:38:53

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

Re: Lets make a new Scratch viewer!

All I can say is help (who was it again) work out the JS equivalent to the Scratch blocks.


You can now reach me on Twitter @johnnydean1_

Offline

 

#753 2010-11-13 16:38:54

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

Re: Lets make a new Scratch viewer!

Am I still making this drop down menu keyboard thing?


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

Offline

 

#754 2010-11-13 16:40:31

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

Re: Lets make a new Scratch viewer!

Who?

Offline

 

#755 2010-11-13 16:50:07

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

Re: Lets make a new Scratch viewer!

I dont think so let me set it straight.


The ask block and other text inputs will call up a JavaScript prompt to enter text. This allows a system keyboard to be used. The exceptions to this are the arrows and space keys, which will have on screen buttons layed out like this:
http://img714.imageshack.us/img714/2206/arrowsv.png

This should allow most projects to be played.


You can now reach me on Twitter @johnnydean1_

Offline

 

#756 2010-11-13 16:52:46

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

Re: Lets make a new Scratch viewer!

Current Tasks
Creating a JavaScript equivalent to the Scratch blocks (explained here):

TheSuccessor
ProgrammingFreak

The ask block to keyboard popup

Who wants to do this?

Understanding the output

MathWizz wanna do this?

Progress
Current Keyboard plan
Here

Current WebSite/Viewer
Here


Execution Engine
Current update here

Debate
Here

Last edited by johnnydean1 (2010-11-14 11:05:23)


You can now reach me on Twitter @johnnydean1_

Offline

 

#757 2010-11-13 16:59:56

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

Re: Lets make a new Scratch viewer!

I think the viewer should look like this:
http://img261.imageshack.us/img261/4461/viewer.png

The big box is the stage. The arrows are the arrow keys. Also the text box thing is any JScript code that is shown.


You can now reach me on Twitter @johnnydean1_

Offline

 

#758 2010-11-13 17:01:11

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

Re: Lets make a new Scratch viewer!

johnnydean1 wrote:

Creating a JavaScript equivalent to the Scratch blocks:

Huh?

Offline

 

#759 2010-11-13 17:04:37

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

Re: Lets make a new Scratch viewer!

So you take a Scratch block
move |10| steps <- as a example

You then turn that into JScript code.


You can now reach me on Twitter @johnnydean1_

Offline

 

#760 2010-11-13 17:09:44

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

Re: Lets make a new Scratch viewer!

oh.  I'll start thinking it up! Successor lets talk!

Offline

 

#761 2010-11-13 17:16:35

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

Re: Lets make a new Scratch viewer!

I'll leave you to it (GTG 10:15pm here)


You can now reach me on Twitter @johnnydean1_

Offline

 

#762 2010-11-13 17:18:01

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

Re: Lets make a new Scratch viewer!

bye

Offline

 

#763 2010-11-13 18:23:43

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

Re: Lets make a new Scratch viewer!

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. We will keep the arrow and space key things though.


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

Offline

 

#764 2010-11-13 18:25:44

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

Re: Lets make a new Scratch viewer!

k i'll read that scratch project file document and try to figure this thing out.


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

Offline

 

#765 2010-11-13 19:31:03

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

Re: Lets make a new Scratch viewer!

jd1, nice mark up. I think the arrows and space should be much bigger. Is the lower box for project notes?


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

Offline

 

#766 2010-11-13 21:33:50

pwiter
Scratcher
Registered: 2010-06-02
Posts: 100+

Re: Lets make a new Scratch viewer!

There should be another box for a keyboard stimluation!


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

Offline

 

#767 2010-11-13 21:58:21

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

Re: Lets make a new Scratch viewer!

pwiter wrote:

There should be another box for a keyboard stimluation!

Yeah, but only if you're on iOS. (You can do that with JavaScript.)


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

Offline

 

#768 2010-11-13 22:43:59

Mysteh
Scratcher
Registered: 2010-07-27
Posts: 4

Re: Lets make a new Scratch viewer!

Im just not sure that we can do this with HTML   tongue

Offline

 

#769 2010-11-13 22:48:24

bbbeb
Scratcher
Registered: 2009-06-11
Posts: 1000+

Re: Lets make a new Scratch viewer!

^Trust me. They can.


Back in my day.... there were no laws that censored the internet... now, there are.... nah.

Offline

 

#770 2010-11-14 03:39:21

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

Re: Lets make a new Scratch viewer!

Want me to make the arrow keys?  smile


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

Offline

 

#771 2010-11-14 03:54:20

ssss
Scratcher
Registered: 2007-07-29
Posts: 1000+

Re: Lets make a new Scratch viewer!

the websites not published  hmm


Hey.  It's me SSSS, back from the dead!  smile

Offline

 

#772 2010-11-14 05:50:45

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

Re: Lets make a new Scratch viewer!

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.

iOS

Whats that?

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.

We will keep the arrow and space key things though.

Good I hope we will, that should make most projects playable.



Sorry I can't keep talking, limited connection - sorry.

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.

What do you think?


You can now reach me on Twitter @johnnydean1_

Offline

 

#773 2010-11-14 06:21:04

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

Re: Lets make a new Scratch viewer!

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)?


/* No comment */

Offline

 

#774 2010-11-14 09:04:23

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

Re: Lets make a new Scratch viewer!

johnnydean1 wrote:

Understanding the output

MathWizz wanna do this?

smile  KK...

Last edited by MathWizz (2010-11-14 09:05:36)


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

Offline

 

#775 2010-11-14 09:33:11

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

Re: Lets make a new Scratch viewer!

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.

iOS

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

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.

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.


Sorry I can't keep talking, limited connection - sorry.

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.
[color="red"]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.[/red]

What do you think?

Okay. I will start reading the document now.


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

Offline

 

Board footer