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

#701 2010-11-10 17:32:05

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

Re: Lets make a new Scratch viewer!

nXIII wrote:

MathWizz wrote:

Now that we have read the the file we can start making the viewer!

EDIT: Has ANYONE (not nXIII) gotten it to work?

What part o' the viewer?

I dunno... We have to start somewhere... Images?  big_smile


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

Offline

 

#702 2010-11-10 17:44:21

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Lets make a new Scratch viewer!

MathWizz wrote:

nXIII wrote:

MathWizz wrote:

Now that we have read the the file we can start making the viewer!

EDIT: Has ANYONE (not nXIII) gotten it to work?

What part o' the viewer?

I dunno... We have to start somewhere... Images?  big_smile

I haven't done anything in a while...and I was mainly ( tongue  almost exclusively) working on the application (rather than the reader/viewer).

Last edited by nXIII (2010-11-10 17:44:30)


nXIII

Offline

 

#703 2010-11-10 17:59:33

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

Re: Lets make a new Scratch viewer!

hmm yay viewer time! Let's rock!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! (How)


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

Offline

 

#704 2010-11-11 13:16:25

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

Re: Lets make a new Scratch viewer!

The reader works perfectly in Chrome 7, but it locks up Firefox 3.6.12 after it finishes...


Yawn.

Offline

 

#705 2010-11-11 14:18:22

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

Re: Lets make a new Scratch viewer!

how do I turn the output code into a project in a canvas? I can make a canvas program easy


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

Offline

 

#706 2010-11-12 09:56:59

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

Re: Lets make a new Scratch viewer!

multithread.js nearly complete! I just need to fix these three bugs:
- Local variables suddenly mess up for no apparent reason
- Blocks of code in between { and } sometimes run oddly
- window.setTimeout() has a habit of crashing it


/* No comment */

Offline

 

#707 2010-11-12 10:21:34

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Lets make a new Scratch viewer!

TheSuccessor wrote:

multithread.js nearly complete! I just need to fix these three bugs:
- Local variables suddenly mess up for no apparent reason
- Blocks of code in between { and } sometimes run oddly
- window.setTimeout() has a habit of crashing it

Wait, what are you doing? JavaScript doesn't really use { and } except in closures....
You don't need multithreading to run Scratch projects, anyway. Squeak doesn't use it.


nXIII

Offline

 

#708 2010-11-12 11:01:49

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

Re: Lets make a new Scratch viewer!

take a look at the execution engine in scratch - you'll get some ideas from there.  wink


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

Offline

 

#709 2010-11-12 11:18:39

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

Re: Lets make a new Scratch viewer!

Could I help?

Offline

 

#710 2010-11-12 11:24:36

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

Re: Lets make a new Scratch viewer!

If you can help us in anyway!


You can now reach me on Twitter @johnnydean1_

Offline

 

#711 2010-11-12 11:33:19

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

Re: Lets make a new Scratch viewer!

What do u want me to do?

Offline

 

#712 2010-11-12 11:35:29

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

Re: Lets make a new Scratch viewer!

Help with using the data.


You can now reach me on Twitter @johnnydean1_

Offline

 

#713 2010-11-12 11:52:38

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

Re: Lets make a new Scratch viewer!

okay...
please follow up

Offline

 

#714 2010-11-12 12:01:49

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

Re: Lets make a new Scratch viewer!

Make a canvass in Java Script that uses MathWizz's reader.


You can now reach me on Twitter @johnnydean1_

Offline

 

#715 2010-11-12 12:11:52

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

Re: Lets make a new Scratch viewer!

okay!

Offline

 

#716 2010-11-12 12:47:44

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

Re: Lets make a new Scratch viewer!

Don't worry programmingFreak, they've only asked you to do the whole view!  tongue


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

Offline

 

#717 2010-11-13 04:33:55

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

Re: Lets make a new Scratch viewer!

Shall I start making JS functions for the blocks?


/* No comment */

Offline

 

#718 2010-11-13 04:46:19

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

Re: Lets make a new Scratch viewer!

Yes, work out a JS equivalent to all the blocks.

One thing before we do anything else. Are we makeing it resizable?


You can now reach me on Twitter @johnnydean1_

Offline

 

#719 2010-11-13 05:04:16

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

Re: Lets make a new Scratch viewer!

I don't know if JS likes colons (:) in function names. Should we replace these with underscores (_)?

Last edited by TheSuccessor (2010-11-13 05:04:48)


/* No comment */

Offline

 

#720 2010-11-13 05:16:12

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

Re: Lets make a new Scratch viewer!

Hmm, no not underscores but '/'s


You can now reach me on Twitter @johnnydean1_

Offline

 

#721 2010-11-13 05:18:13

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

Re: Lets make a new Scratch viewer!

Right.


/* No comment */

Offline

 

#722 2010-11-13 05:23:21

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

Re: Lets make a new Scratch viewer!

I thought MathWizz said he could do the canvas! Oh well.
PS: I forgot to do a application.
I know HTML (mastered) and a little JS

Offline

 

#723 2010-11-13 07:03:18

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

Re: Lets make a new Scratch viewer!

omg I can't understand the output at all.


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

Offline

 

#724 2010-11-13 07:47:40

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

Re: Lets make a new Scratch viewer!

hey guys! I just made something we can use:

PROBLEM: The ipad doesn't have arrow keys. We want projects in our viewer to run on the ipad. Lots of projects have arrow keys.

SOLUTION: I made this program in Dynamic HTML. it has arrow keys in a grid, and if you're on an iPad, you can press them. Here's a link. (Tested on an iPad)

iOS arrowkeys

MORE WORK: In the viewer's code where it senses keys, we have to put these in and give them the same effect as the up left right and down keys.

The keys light up when moused over on a computer, but onmouseover turns true when you touch them on the iPad.

Last edited by midnightleopard (2010-11-13 07:48:55)


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

Offline

 

#725 2010-11-13 07:52:34

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

Re: Lets make a new Scratch viewer!

What About the other keys


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

Offline

 

Board footer