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

#1101 2011-08-29 20:35:59

paulpsicle
Scratcher
Registered: 2008-10-12
Posts: 100+

Re: Lets make a new Scratch viewer!

OK, everyone. I vote for #2, and i have some code. In fact, I have a whole implementation of scratch (one one canvas). It, however does not read the scratch files. It takes javascript. So, my suggestion is to make a converter in PHP that takes a scratch file and outputs javascript. My version is here.

Last edited by paulpsicle (2011-08-29 20:36:53)


http://blocks.scratchr.org/API.php?user=paulpsicle&action=onlineStatus&online=http://fishery.dyndns.org/paulpsicle.png&offline=http://fishery.dyndns.org/paulpsicle_o.png

Offline

 

#1102 2011-08-29 22:47:08

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Lets make a new Scratch viewer!

Wait. Is there a way to convert a Scratch-file into workable javascript or PHP code (say, a very long string)?


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#1103 2011-08-30 06:23:48

paulpsicle
Scratcher
Registered: 2008-10-12
Posts: 100+

Re: Lets make a new Scratch viewer!

Not so far, but I think it's possible


http://blocks.scratchr.org/API.php?user=paulpsicle&action=onlineStatus&online=http://fishery.dyndns.org/paulpsicle.png&offline=http://fishery.dyndns.org/paulpsicle_o.png

Offline

 

#1104 2011-09-15 19:08:39

GP1
Scratcher
Registered: 2009-07-06
Posts: 1000+

Re: Lets make a new Scratch viewer!

I think that this is a very good project for the community to work on. I see that somebody has made a sample html viewer for us to try out, but I want to see what the php code looks like to decode the .sb project. Us GE developers (go everywhere) want people to develop in regular scratch and upload their projects to GE to be decoded into an xml file, which they can edit it on their device.


I am currently http://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=imagehttp://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=text and I finally got over 1000 posts.

Offline

 

#1105 2011-09-17 15:59:12

coinman
Scratcher
Registered: 2011-04-19
Posts: 500+

Re: Lets make a new Scratch viewer!

johnnydean1 wrote:

The offical HTML Scratch viewer thread
Updates
Update Post

Poll
Do we:
1.) Make a HTML squeak player
2.) Just make a Scratch viewer (Start again)
3.) Continue progress

Results
Note: These will be updated until the poll has ended
1.) 1
2.) 2
3.) 1

How to add a vote:
Add a new forum post that says:

Poll vote
I choose number:

Team

johnnydean1
TheSuccessor
Daffy22
ScratchReallyROCKS
midnightleopard
MathWizz
Pwiter
ProgrammingFreak
Taneb
Anyone else who wants to join with HTML/JavaScript knowledge)

Website
Website is located here

Info
I dreamed a dream... that one day the Scratch viewer could be used on any web browser. I then thought about this idea and came up with this the
HTML Scratch Viewer

Original Post

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
3DS (When browser released)
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!

So can we make it?

Bob the Builder said:
Yes we can!

lol


Click the picture below to play my best game yet, Snowball Fight!
http://scratch.mit.edu/static/projects/coinman/3221194_sm.png

Offline

 

#1106 2011-09-17 18:47:50

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Lets make a new Scratch viewer!

And, beyond just the script, we also need to be able to get the sprite images in through PHP too.


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#1107 2011-09-18 01:03:42

Rune78man50
Scratcher
Registered: 2009-11-29
Posts: 72

Re: Lets make a new Scratch viewer!

Is your weebly site published?


http://i47.tinypic.com/f56kxz.pngA REAL operating system...

Offline

 

#1108 2011-09-18 02:24:24

ianmat
Scratcher
Registered: 2009-11-18
Posts: 64

Re: Lets make a new Scratch viewer!

i do html5 but right now i do not have a computer but do have a windows phone and an android tablet


http://mag.racked.eu/image/3.1/I+found+dirt%21+Its+rare%21/mca.png

Offline

 

#1109 2011-09-26 20:53:30

Laternenpfahl
Scratcher
Registered: 2011-06-24
Posts: 1000+

Re: Lets make a new Scratch viewer!

Harakou wrote:

Uh, I hate to be the one to say this, but let me point out that JavaScript performance on mobile browsers is less than desirable, to put it lightly. Even if the viewer was actually displayed correctly, the speed would be mind-numbingly slow.

see http://www.google.com/doubleclick/studi … fy_v2.html


http://i46.tinypic.com/6yd4c0.png

Offline

 

#1110 2011-09-29 22:03:01

scratcher7_13
Scratcher
Registered: 2011-02-09
Posts: 1000+

Re: Lets make a new Scratch viewer!

Laternenpfahl wrote:

Harakou wrote:

Uh, I hate to be the one to say this, but let me point out that JavaScript performance on mobile browsers is less than desirable, to put it lightly. Even if the viewer was actually displayed correctly, the speed would be mind-numbingly slow.

see http://www.google.com/doubleclick/studi … fy_v2.html

Was that written in JavaScript? It's not too slow!


♫ 90% of teens can't do math. If you are one of the 40% of teens who can, copy and paste this into your signature. ♫♪
http://dl.dropbox.com/u/6273449/BlockLibraryTitle.pnghttp://i.imgur.com/mr9Hf.gif

Offline

 

#1111 2011-10-02 20:12:51

IMBEEGUY
Scratcher
Registered: 2008-11-22
Posts: 7

Re: Lets make a new Scratch viewer!

johnnydean1 wrote:

The offical HTML Scratch viewer thread

Website
Website is located here

this link isn't valid.

Offline

 

#1112 2011-10-16 18:03:14

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

Re: Lets make a new Scratch viewer!

how's this going?
Is it dead?

Last edited by midnightleopard (2011-10-16 18:03:36)


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

Offline

 

#1113 2011-10-22 23:31:12

Rune78man50
Scratcher
Registered: 2009-11-29
Posts: 72

Re: Lets make a new Scratch viewer!

Hey, I can't get to the site... Did you guys make it private, change addresses or something like that? I get the "not published" weebly error"...


http://i47.tinypic.com/f56kxz.pngA REAL operating system...

Offline

 

#1114 2011-10-23 11:33:27

cocolover76
Scratcher
Registered: 2011-10-09
Posts: 500+

Re: Lets make a new Scratch viewer!

Site Not Published
The site you are looking for has not been published
If you are the owner of the site, you can fix this message by publishing your site to this address.


http://i.imgur.com/HfEPZ.gifhttp://i.imgur.com/pvKb6.png

Offline

 

#1115 2011-10-24 16:57:06

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

Re: Lets make a new Scratch viewer!

Once again, IS THIS STILL GOING? I am good at HTML5 now. Real good.


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

Offline

 

#1116 2011-10-24 22:23:30

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

Re: Lets make a new Scratch viewer!

Well... Not really. I have all the code and everything. Maybe we could restart this? The things I'm stuck on are reading floats and reading images from the scratch file.


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

Offline

 

#1117 2011-10-27 20:25:16

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

Re: Lets make a new Scratch viewer!

MathWizz wrote:

Well... Not really. I have all the code and everything. Maybe we could restart this? The things I'm stuck on are reading floats and reading images from the scratch file.

Hey MathWizz, nice to see you again. I was just thinking... I do have an interest in starting it up again.
When we started I knew nothing, but over the last year or so I have become fluent in JavaScript and nearly fluent in PHP. It seemed as though the newest members of this viewer organization have corrupted it, but I think there is still hope. Maybe we should start a new thread?
Also, we should absoultely stick to one canvas for the project just because multi-canvas would be much harder.

I have been porting some old scratch projects into canvas and have come up with a very efficient way of doing it. Perhaps we could just make an automated version of that?
-MidnightLeopard


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

Offline

 

#1118 2011-10-27 20:49:50

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

Re: Lets make a new Scratch viewer!

midnightleopard wrote:

Hey MathWizz, nice to see you again. I was just thinking... I do have an interest in starting it up again.
When we started I knew nothing, but over the last year or so I have become fluent in JavaScript and nearly fluent in PHP. It seemed as though the newest members of this viewer organization have corrupted it, but I think there is still hope. Maybe we should start a new thread?
Also, we should absoultely stick to one canvas for the project just because multi-canvas would be much harder.

I have been porting some old scratch projects into canvas and have come up with a very efficient way of doing it. Perhaps we could just make an automated version of that?
-MidnightLeopard

Hey! I agree with making a new thread. Maybe even change the name to JsScratch or something. I have started playing with Jens morphic.js and I think that should be what we use. Right now I have the viewer opening files from my server with XMLHttpRequest and reading them on the spot.  big_smile


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

Offline

 

#1119 2011-10-27 21:10:41

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

Re: Lets make a new Scratch viewer!

MathWizz wrote:

midnightleopard wrote:

Hey MathWizz, nice to see you again. I was just thinking... I do have an interest in starting it up again.
When we started I knew nothing, but over the last year or so I have become fluent in JavaScript and nearly fluent in PHP. It seemed as though the newest members of this viewer organization have corrupted it, but I think there is still hope. Maybe we should start a new thread?
Also, we should absoultely stick to one canvas for the project just because multi-canvas would be much harder.

I have been porting some old scratch projects into canvas and have come up with a very efficient way of doing it. Perhaps we could just make an automated version of that?
-MidnightLeopard

Hey! I agree with making a new thread. Maybe even change the name to JsScratch or something. I have started playing with Jens morphic.js and I think that should be what we use. Right now I have the viewer opening files from my server with XMLHttpRequest and reading them on the spot.  big_smile

Hmm. Jens things appears to be a squeak IDE for canvas. Very cool. So you are using XMLHttpRequest to read scratch project files from your server? The part of this whole thing that has confused me most is reading the files. When I open them with notepad I just get tons of binary data.
I understand that there is documentation for this gibberish here.
It seems to be that the image files for the sprites are in binary data urls. That should be very easy to draw onto a cavnas, but difficult to read. I think once we can figure that out, we're all set.
I will start a new thread.


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

Offline

 

#1120 2011-10-27 21:21:06

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

Re: Lets make a new Scratch viewer!

MathWizz wrote:

midnightleopard wrote:

Hey MathWizz, nice to see you again. I was just thinking... I do have an interest in starting it up again.
When we started I knew nothing, but over the last year or so I have become fluent in JavaScript and nearly fluent in PHP. It seemed as though the newest members of this viewer organization have corrupted it, but I think there is still hope. Maybe we should start a new thread?
Also, we should absoultely stick to one canvas for the project just because multi-canvas would be much harder.

I have been porting some old scratch projects into canvas and have come up with a very efficient way of doing it. Perhaps we could just make an automated version of that?
-MidnightLeopard

Hey! I agree with making a new thread. Maybe even change the name to JsScratch or something. I have started playing with Jens morphic.js and I think that should be what we use. Right now I have the viewer opening files from my server with XMLHttpRequest and reading them on the spot.  big_smile

New thread located here

EDIT: Removed a violent rant on the sixty-second rule

Last edited by midnightleopard (2011-10-27 21:21:32)


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

Offline

 

#1121 2011-10-28 07:37:43

ZeroLuck
Scratcher
Registered: 2010-02-23
Posts: 500+

Re: Lets make a new Scratch viewer!

I can help you to read the sb files.


http://3.bp.blogspot.com/-oL2Atzp0Byw/T465vIQ36dI/AAAAAAAAADo/1vqL4PvhkM0/s1600/scratchdachwiki.png

Offline

 

#1122 2011-10-28 09:21:04

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

Re: Lets make a new Scratch viewer!

ZeroLuck wrote:

I can help you to read the sb files.

Our offical thread has moved to http://scratch.mit.edu/forums/viewtopic.php?id=79044. I can read the files and compile everything into a giant array of objects but the problem I have is reading floats and images.


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

Offline

 

Board footer