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

#951 2010-11-30 12:34:22

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

Re: Lets make a new Scratch viewer!

Daffy22 wrote:

johnnydean1 wrote:

Ok lets do the normal scratch blocks +
open url %s
get url %s
read line %n from %s (from web page)
write %s to file %s (writes as a cookie)
read file %s (from cookie)
%n ^ %n


and if we do mesh
join mesh %s
leave mesh %s
host mesh
(ip adress)

That way we should be about 50% conpatible with most mods


You can now reach me on Twitter @johnnydean1_

Offline

 

#952 2010-11-30 14:27:04

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

Re: Lets make a new Scratch viewer!

johnnydean1 wrote:

read line %n from %s (from cookie)
write %s to file %s (from cookie)
read file %s (from cookie)

read line %n from URL %s (from URL)
read URL %s (from URL)

That's the only way it is going to work.  wink


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

Offline

 

#953 2010-11-30 17:18:12

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

Re: Lets make a new Scratch viewer!

have we finished printing sprites into the canvas?


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

Offline

 

#954 2010-11-30 17:27:32

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

Re: Lets make a new Scratch viewer!

Okay. Here is my rant:

Canvas is a feature in HTML 5. Most browsers will be able to play it. The new internet explorer 9 can play HTML 5. Wii Internet is Opera Based, so should be able to play it soon enough. DS as well. iPhone, iPods, iPads can all play it. We do not need jQuery, it is almost useless in a canvas. For those of you who don't know, a canvas is a box embedded in your html document which is controlled completely by JavaScript. (Reminds me of a flash embed or a java applet.) We also do not need a separate canvas for each sprite.

JD1, what are you talking about using HTML 4 for this? There is no canvas in HTML 4. You aren't proposing we have each sprite as an image and using JavaScript to control it's style attribute? That is a pain staking and nonprofessional way to do this.

UPDATE: Use PHP to create images? Hmm.
Pros: Faster to draw an image from a file to a canvas.
Cons: We have to save them to a server.

Last edited by midnightleopard (2010-11-30 17:30:16)


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

Offline

 

#955 2010-11-30 18:09:34

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

Re: Lets make a new Scratch viewer!

midnightleopard wrote:

UPDATE: Use PHP to create images? Hmm.
Pros: Faster to draw an image from a file to a canvas.
Cons: We have to save them to a server.

JavaScript can match PHP images with data URLs and no, we do not need to save the images to a server.


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

Offline

 

#956 2010-12-02 15:33:14

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

Re: Lets make a new Scratch viewer!

thump


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

Offline

 

#957 2010-12-02 15:56:16

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

Re: Lets make a new Scratch viewer!

Bring

Up

This

Post

Butp.


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

Offline

 

#958 2010-12-02 16:05:52

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

Re: Lets make a new Scratch viewer!

Hows progress everyone??


You can now reach me on Twitter @johnnydean1_

Offline

 

#959 2010-12-02 16:15:43

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

Re: Lets make a new Scratch viewer!

I don't have a job! Please assign!

Offline

 

#960 2010-12-02 17:20:51

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

Re: Lets make a new Scratch viewer!

you know, we're going to run into a brick wall soon. JS can't run functions in parallel. No idea how to fix this.


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

 

#961 2010-12-02 19:36:43

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

Re: Lets make a new Scratch viewer!

did no one hear me?
this cannot be achieved without canvas! HTML 4 is not a valid option!


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

Offline

 

#962 2010-12-03 05:08:46

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

Re: Lets make a new Scratch viewer!

Fine use the HTML 5 for canvas and nothing else!!

Also can any1 explain how This works (does it use canvas)


You can now reach me on Twitter @johnnydean1_

Offline

 

#963 2010-12-03 13:46:05

tcb
Scratcher
Registered: 2008-03-25
Posts: 100+

Re: Lets make a new Scratch viewer!

OK Cool. Midnight Leopard could you please could motion blocks? I have no idea how we're going to fit all of those sprites into a single canvas...


http://goo.gl/eCQLihttp://goo.gl/sK54shttp://goo.gl/jC0dehttp://goo.gl/yhGLQhttp://goo.gl/wqvsQ

Offline

 

#964 2010-12-03 16:39:22

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

Re: Lets make a new Scratch viewer!

sorry. I can't help I don't understand the output. JD1, wethe mystical journey thing doesn't use canvas I don't think. I think that might actually be <img> tags who's positions are controlled by javascript. (That is possible but hard.)


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

Offline

 

#965 2010-12-04 04:33:44

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

Re: Lets make a new Scratch viewer!

Thats what I thought. Can we do that in the viewer.


You can now reach me on Twitter @johnnydean1_

Offline

 

#966 2010-12-04 12:21:32

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

Re: Lets make a new Scratch viewer!

Perhaps we could stick to the original idea and use a seperate canvas?

Because you just reset all our work otherwise.


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

Offline

 

#967 2010-12-04 12:47:08

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

Re: Lets make a new Scratch viewer!

Ok lets make it using a canvas.

For now...


You can now reach me on Twitter @johnnydean1_

Offline

 

#968 2010-12-05 07:24:42

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

Re: Lets make a new Scratch viewer!

okay, forget I said anything. But if we do canvas then I think we've made the coolest canvas project on the web so far.


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

Offline

 

#969 2010-12-05 11:14:05

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

Re: Lets make a new Scratch viewer!

johnnydean1 wrote:

Thats what I thought. Can we do that in the viewer.

I agree. That is how all of my blocks work.


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

Offline

 

#970 2010-12-05 14:22:35

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

Re: Lets make a new Scratch viewer!

hm okay. Let's go. What should I do? Are we doing multiple canvas for sprites, moving image tags, or what?


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

Offline

 

#971 2010-12-05 14:40:08

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

Re: Lets make a new Scratch viewer!

paulpsicle wrote:

you know, we're going to run into a brick wall soon. JS can't run functions in parallel. No idea how to fix this.

I have a way round that.


/* No comment */

Offline

 

#972 2010-12-05 15:59:09

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

Re: Lets make a new Scratch viewer!

TheSuccessor wrote:

paulpsicle wrote:

you know, we're going to run into a brick wall soon. JS can't run functions in parallel. No idea how to fix this.

I have a way round that.

Scratch doesn't run things in parallel.


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

Offline

 

#973 2010-12-06 13:31:27

Taneb
Scratcher
Registered: 2009-07-07
Posts: 100+

Re: Lets make a new Scratch viewer!

MathWizz wrote:

TheSuccessor wrote:

paulpsicle wrote:

you know, we're going to run into a brick wall soon. JS can't run functions in parallel. No idea how to fix this.

I have a way round that.

Scratch doesn't run things in parallel.

No, but, with multiple Sprites, it maintains an illusion of parallel.

Offline

 

#974 2010-12-06 13:54:25

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

Re: Lets make a new Scratch viewer!

It runs one block from each script at before it moves onto the next block.
If you have 3 scripts:
Script    Block
1           1
2           1
3           1
1           2
2           2
3           2
etc


/* No comment */

Offline

 

#975 2010-12-06 13:58:18

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

Re: Lets make a new Scratch viewer!

Poll
What way should be display the sprites/stage?

Moving image tags
Canvas
Multiple Canvas'


You can now reach me on Twitter @johnnydean1_

Offline

 

Board footer