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

#1 2010-07-21 21:02:31

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

JavaScript

So someone was talking about converting Scratch to JavaScript? I have been learning some html 5 lately and I only really know about the video tag, but using the 'canvas element' and JavaScript can rival flash. Perhaps an HTML 5 player for scratch projects could be done with a canvas and JS? For example: My favorite Canvas+JS project. It can rival flash


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

Offline

 

#2 2010-07-21 21:59:04

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: JavaScript

JavaScript + HTML5 can definitely rival Flash - but I don't think anybody's planning on making a full-out version of Scratch with JavaScript just yet.

Offline

 

#3 2010-07-22 03:41:33

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: JavaScript

...

I can not share stuff but I can tell you there has been made a Scratch-like environment entirely in Javascript and HTML5


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

#4 2010-07-22 11:49:09

dav09
Scratcher
Registered: 2009-03-25
Posts: 1000+

Re: JavaScript

billyedward is making a program that is like scratch  but in html and js and maybe php i think! This means an online player could work with html 5, like youtube html 5 beta!

Last edited by dav09 (2010-07-22 13:17:26)

Offline

 

#5 2010-07-22 11:58:37

Zenith2582
Scratcher
Registered: 2010-03-20
Posts: 44

Re: JavaScript

JSO wrote:

...

I can not share stuff but I can tell you there has been made a Scratch-like environment entirely in Javascript and HTML5

Why not?


Gamespy ID: Wave1453 - Game I usually play: Civ 4
Yes, I got the idea from Greenboi.  tongue   lol  (And yes, this is WaveOSBeta)                            [link removed by moderator]< DO NOT CLICK. IT IS A RICKROLL. IT IS IMPOSSIBLE TO CLOSE.

Offline

 

#6 2010-07-22 13:30:31

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

Re: JavaScript

dav09 wrote:

billyedward is making a program that is like scratch  but in html and js and maybe php i think! This means an online player could work with html 5, like youtube html 5 beta!

his thing is not closely related to scratch. Only the lay out, what he has made is a web design tool that uses scratch blocks.


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

Offline

 

#7 2010-07-22 13:46:30

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

Re: JavaScript

dav09 wrote:

billyedward is making a program that is like scratch  but in html and js and maybe php i think! This means an online player could work with html 5, like youtube html 5 beta!

No, It's made in Squeak just like Scratch is, but it's blocks are HTML commands instead of Scratch ones.


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

Offline

 

#8 2010-09-23 15:20:42

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

Re: JavaScript

bump


You can now reach me on Twitter @johnnydean1_

Offline

 

#9 2010-09-23 16:55:12

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

Re: JavaScript

It's BYOB! Look at the thread...


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

Offline

 

#10 2010-09-24 02:45:24

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

Re: JavaScript

I am currently trying to make a text based scratch online. It will then be played with HTML5 and JS!  big_smile


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

Offline

 

#11 2010-09-25 05:35:58

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

Re: JavaScript

coolstuff wrote:

JavaScript + HTML5 can definitely rival Flash - but I don't think anybody's planning on making a full-out version of Scratch with JavaScript just yet.

I am. It's called HTMLgames.


/* No comment */

Offline

 

#12 2010-09-25 15:41:33

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

Re: JavaScript

Daffy22 wrote:

I am currently trying to make a text based scratch online. It will then be played with HTML5 and JS!  big_smile

I'm sorry, but what is a "text based Scratch"?!  lol


nXIII

Offline

 

#13 2010-09-26 00:44:06

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

Re: JavaScript

nXIII wrote:

Daffy22 wrote:

I am currently trying to make a text based scratch online. It will then be played with HTML5 and JS!  big_smile

I'm sorry, but what is a "text based Scratch"?!  lol

lol  Its a typed Scratch!!
see?

/\
||
||
||
||
||
||
\/

A typed scratch in this post!!  big_smile


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

Offline

 

#14 2010-09-26 03:18:53

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

Re: JavaScript

yeah instead of blocks it is typed like html and php


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

Offline

 

#15 2010-09-26 10:29:00

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

Re: JavaScript

Daffy22 wrote:

yeah instead of blocks it is typed like html and php

But it then has no similarity to Scratch, as Scratch is centered around drag-and-drop. So basically, you're just making a scripting language with the same methods as Scratch, which might be hard, given the argument distribution and localization.

Last edited by nXIII (2010-09-26 10:32:00)


nXIII

Offline

 

#16 2010-09-26 10:50:31

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

Re: JavaScript

nXIII wrote:

Daffy22 wrote:

yeah instead of blocks it is typed like html and php

But it then has no similarity to Scratch, as Scratch is centered around drag-and-drop. So basically, you're just making a scripting language with the same methods as Scratch, which might be hard, given the argument distribution and localization.

Well bacially it will look very similar to scratch but without the catagories and click and drag blocks. All the scripts are the same like turn 50 degrees that will be included ect...


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

Offline

 

#17 2010-09-26 11:01:04

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

Re: JavaScript

Daffy22 wrote:

nXIII wrote:

Daffy22 wrote:

yeah instead of blocks it is typed like html and php

But it then has no similarity to Scratch, as Scratch is centered around drag-and-drop. So basically, you're just making a scripting language with the same methods as Scratch, which might be hard, given the argument distribution and localization.

Well bacially it will look very similar to scratch but without the catagories and click and drag blocks. All the scripts are the same like turn 50 degrees that will be included ect...

You just restated what I said.

Look, guys, a "text-based Scratch" is just a scripting language with arbitrary argument distribution across newline-separated methods which may contain spaces. You'd be better off just learning JavaScript, it has closures, a good syntax, and everything else you want in a language.


nXIII

Offline

 

#18 2010-09-26 12:08:58

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

Re: JavaScript

nXIII wrote:

Daffy22 wrote:

nXIII wrote:


But it then has no similarity to Scratch, as Scratch is centered around drag-and-drop. So basically, you're just making a scripting language with the same methods as Scratch, which might be hard, given the argument distribution and localization.

Well bacially it will look very similar to scratch but without the catagories and click and drag blocks. All the scripts are the same like turn 50 degrees that will be included ect...

You just restated what I said.

Look, guys, a "text-based Scratch" is just a scripting language with arbitrary argument distribution across newline-separated methods which may contain spaces. You'd be better off just learning JavaScript, it has closures, a good syntax, and everything else you want in a language.

I know (I can script JS) but js is quite complex but my new script language will be far simpler and very similar to php (variable ect are the same) so it will help people learn PHP too which is growing in popularity!  big_smile


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

Offline

 

#19 2010-09-26 12:33:43

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

Re: JavaScript

Daffy22 wrote:

nXIII wrote:

Daffy22 wrote:

Well bacially it will look very similar to scratch but without the catagories and click and drag blocks. All the scripts are the same like turn 50 degrees that will be included ect...

You just restated what I said.

Look, guys, a "text-based Scratch" is just a scripting language with arbitrary argument distribution across newline-separated methods which may contain spaces. You'd be better off just learning JavaScript, it has closures, a good syntax, and everything else you want in a language.

I know (I can script JS) but js is quite complex but my new script language will be far simpler and very similar to php (variable ect are the same) so it will help people learn PHP too which is growing in popularity! :D

PHP is NOT simple. PHP has lambdas (and closures), scoping, and much, much, more. Scratch has none of that, and the syntax has nothing to do with PHP's. For example, you can do this:
(function(foo){return "Hello, " + foo + "!";})("World");
in JS and this:
(function($foo){return "Hello, " . $foo . "!";})("World");
in PHP, but you can't do anything even remotely similar in Scratch. What would it be, this?
set [foo] to (World)
set [Result] to (join (Hello, ) (join (foo) (!)))
That sure isn't a lambda.

Last edited by nXIII (2010-09-26 12:34:26)


nXIII

Offline

 

#20 2010-09-26 12:47:27

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

Re: JavaScript

nXIII wrote:

Daffy22 wrote:

nXIII wrote:


You just restated what I said.

Look, guys, a "text-based Scratch" is just a scripting language with arbitrary argument distribution across newline-separated methods which may contain spaces. You'd be better off just learning JavaScript, it has closures, a good syntax, and everything else you want in a language.

I know (I can script JS) but js is quite complex but my new script language will be far simpler and very similar to php (variable ect are the same) so it will help people learn PHP too which is growing in popularity!  big_smile

PHP is NOT simple. PHP has lambdas (and closures), scoping, and much, much, more. Scratch has none of that, and the syntax has nothing to do with PHP's. For example, you can do this:
(function(foo){return "Hello, " + foo + "!";})("World");
in JS and this:
(function($foo){return "Hello, " . $foo . "!";})("World");
in PHP, but you can't do anything even remotely similar in Scratch. What would it be, this?
set [foo] to (World)
set [Result] to (join (Hello, ) (join (foo) (!)))
That sure isn't a lambda.

Cool down...
I think you got the wrong idea. What I meant was the style of scripting like setting variables:
$var="string";
would be the same as PHP. It basically just similar to PHP but does completely different things. Do you get it now?  lol


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

Offline

 

#21 2010-09-26 14:13:36

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

Re: JavaScript

Daffy22 wrote:

nXIII wrote:

Daffy22 wrote:


I know (I can script JS) but js is quite complex but my new script language will be far simpler and very similar to php (variable ect are the same) so it will help people learn PHP too which is growing in popularity!  big_smile

PHP is NOT simple. PHP has lambdas (and closures), scoping, and much, much, more. Scratch has none of that, and the syntax has nothing to do with PHP's. For example, you can do this:
(function(foo){return "Hello, " + foo + "!";})("World");
in JS and this:
(function($foo){return "Hello, " . $foo . "!";})("World");
in PHP, but you can't do anything even remotely similar in Scratch. What would it be, this?
set [foo] to (World)
set [Result] to (join (Hello, ) (join (foo) (!)))
That sure isn't a lambda.

Cool down...
I think you got the wrong idea. What I meant was the style of scripting like setting variables:
$var="string";
would be the same as PHP. It basically just similar to PHP but does completely different things. Do you get it now?  lol

I don't think you should be Loling at this. Your language has nothing to do with Scratch other than having similar methods. That's like me saying VB is like a newline-delimited C because it has data types.


nXIII

Offline

 

#22 2010-09-26 14:31:00

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

Re: JavaScript

nXIII wrote:

Daffy22 wrote:

nXIII wrote:


PHP is NOT simple. PHP has lambdas (and closures), scoping, and much, much, more. Scratch has none of that, and the syntax has nothing to do with PHP's. For example, you can do this:
(function(foo){return "Hello, " + foo + "!";})("World");
in JS and this:
(function($foo){return "Hello, " . $foo . "!";})("World");
in PHP, but you can't do anything even remotely similar in Scratch. What would it be, this?
set [foo] to (World)
set [Result] to (join (Hello, ) (join (foo) (!)))
That sure isn't a lambda.

Cool down...
I think you got the wrong idea. What I meant was the style of scripting like setting variables:
$var="string";
would be the same as PHP. It basically just similar to PHP but does completely different things. Do you get it now?  lol

I don't think you should be Loling at this. Your language has nothing to do with Scratch other than having similar methods. That's like me saying VB is like a newline-delimited C because it has data types.

you don't understand I am making a text based scratch like this:
[move 30 steps]
[if on edge bounce]
ect...
I will base certain parts (like variables) on PHP because I like the PHP syntax.  smile


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

Offline

 

#23 2010-09-26 14:58:13

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

Re: JavaScript

Daffy22 wrote:

nXIII wrote:

Daffy22 wrote:

Cool down...
I think you got the wrong idea. What I meant was the style of scripting like setting variables:
$var="string";
would be the same as PHP. It basically just similar to PHP but does completely different things. Do you get it now?  lol

I don't think you should be Loling at this. Your language has nothing to do with Scratch other than having similar methods. That's like me saying VB is like a newline-delimited C because it has data types.

you don't understand I am making a text based scratch like this:
[move 30 steps]
[if on edge bounce]
ect...
I will base certain parts (like variables) on PHP because I like the PHP syntax.  smile

but what about [set something to something]?
I understand perfectly, it's YOU who doesn't understand!

Last edited by nXIII (2010-09-26 14:58:38)


nXIII

Offline

 

#24 2010-09-26 18:05:37

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

Re: JavaScript

{When flag clicked}
forever{
move (10) steps
play sound [pop]
}

{When flag clicked}
forever{
set [variable] to (((variable) + 1))
move (variable) steps
}

hmm I really like the way that looks. I wonder if I could make a version of scratch in python that is text based like that but saves as .sb

Bored of modding scratch with smalltalk I think I'll research this instead!

Last edited by midnightleopard (2010-09-26 18:07:50)


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

Offline

 

#25 2010-09-26 18:06:34

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

Re: JavaScript

Text based Anything sucks!!  tongue   tongue

Thats my opinion. And also whi I dont do C++ too often.  tongue


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

Offline

 

Board footer