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
Offline
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
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?
(And yes, this is WaveOSBeta) [link removed by moderator]< DO NOT CLICK. IT IS A RICKROLL. IT IS IMPOSSIBLE TO CLOSE.Offline
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.
Offline
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.
Offline
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.
Offline
nXIII wrote:
Daffy22 wrote:
I am currently trying to make a text based scratch online. It will then be played with HTML5 and JS!
![]()
I'm sorry, but what is a "text based Scratch"?!
![]()
Its a typed Scratch!!
see?
/\
||
||
||
||
||
||
\/
A typed scratch in this post!!
Offline
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)
Offline
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...
Offline
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.
Offline
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!
Offline
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)
Offline
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!
![]()
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?
Offline
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!![]()
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?![]()
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.
Offline
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?![]()
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.
Offline
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?![]()
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.![]()
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)
Offline
{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)
Offline