Discuss Scratch

bobbybee
Scratcher
1000+ posts

I made a basic port of Scratch to HTML5 (via Haxe and OpenFL)

blob8108 wrote:

How did you port this? Did you rewrite it in the new language, or are they somehow similar enough that you can directly copy bits?

It doesn't seem to work for me; I only see a black screen

Haxe is a language that it is very similar to AS3 and has compiler backends for Flash, native desktop, phones, and… html5!

OpenFL is a free implementation of most of the Flash runtime in haxe.

Haxe + OpenFL = free JS Flash!

The black screen bug is fixed in my fork: https://bobbybee.github.io/scratch-flash/release/
Ethan_1
Scratcher
100+ posts

I made a basic port of Scratch to HTML5 (via Haxe and OpenFL)

blob8108 wrote:

How did you port this? Did you rewrite it in the new language, or are they somehow similar enough that you can directly copy bits?

It doesn't seem to work for me; I only see a black screen
@blob8108, It is written in haxe, which I am guessing was partially auto ported and partially manually ported (I started a similar effort a month ago).

Oops didn't see @bobbybee's post. nm on the fix, see her post.

Last edited by Ethan_1 (Jan. 18, 2016 03:50:19)

Jonathan50
Scratcher
1000+ posts

I made a basic port of Scratch to HTML5 (via Haxe and OpenFL)

wow it's so working
custom blocks and all
with no Flash at all

bobbybee wrote:

Haxe + OpenFL = free JS Flash!
Jonathan50
Scratcher
1000+ posts

I made a basic port of Scratch to HTML5 (via Haxe and OpenFL)

what it appears OpenFL themselves are doing the same thing… https://github.com/openfl/scratch-openfl
bobbybee
Scratcher
1000+ posts

I made a basic port of Scratch to HTML5 (via Haxe and OpenFL)

Jonathan50 wrote:

what it appears OpenFL themselves are doing the same thing… https://github.com/openfl/scratch-openfl
Waaaa…

Okay. Well, it's inactive anyway.

I think?

Last edited by bobbybee (Jan. 18, 2016 23:29:40)

Firedrake969
Scratcher
1000+ posts

I made a basic port of Scratch to HTML5 (via Haxe and OpenFL)

bobbybee wrote:

Jonathan50 wrote:

what it appears OpenFL themselves are doing the same thing… https://github.com/openfl/scratch-openfl
Waaaa…

Okay. Well, it's inactive anyway.

I think?
Updated 3 days ago
programmingbasics
Scratcher
3 posts

I made a basic port of Scratch to HTML5 (via Haxe and OpenFL)

Thanks for all your kind responses. I am not planning on doing any further development on the port in the near future. If anyone wants to take over the code, feel free to do so. I'm confident that it's possible to complete the port, though some of the remaining parts are a little tricky since they'll involve using many of the newer HTML5 APIs.

Although I badly want to see an HTML5 version of Scratch, the reality is that the Scratch team can't use any of my code. The Scratch code is released as open source under the GPL, so all my changes are also licensed under the GPL. Unfortunately, the version of Scratch used on the Scratch website isn't GPL, so it isn't allowed to incorporate my changes due to licensing issues. They would have to recode their own port from scratch . As such, I don't see much point in finishing the porting process since all the work would have to be redone anyway. I still view my port as a useful proof of concept that it is possible to make an HTML5 port of the codebase in a month or two if the Scratch team decide to go in that direction.
Jonathan50
Scratcher
1000+ posts

I made a basic port of Scratch to HTML5 (via Haxe and OpenFL)

programmingbasics wrote:

Thanks for all your kind responses. I am not planning on doing any further development on the port in the near future. If anyone wants to take over the code, feel free to do so. I'm confident that it's possible to complete the port, though some of the remaining parts are a little tricky since they'll involve using many of the newer HTML5 APIs.

Although I badly want to see an HTML5 version of Scratch, the reality is that the Scratch team can't use any of my code. The Scratch code is released as open source under the GPL, so all my changes are also licensed under the GPL. Unfortunately, the version of Scratch used on the Scratch website isn't GPL, so it isn't allowed to incorporate my changes due to licensing issues. They would have to recode their own port from scratch . As such, I don't see much point in finishing the porting process since all the work would have to be redone anyway. I still view my port as a useful proof of concept that it is possible to make an HTML5 port of the codebase in a month or two if the Scratch team decide to go in that direction.
Oh, yes, since you hold the copyright for your changes.

I think you could sign some agreement to give them ownership of the code if you didn't mind.
Or ST could release all changes (such as cloud data, uploading) as GPL.
bobbybee
Scratcher
1000+ posts

I made a basic port of Scratch to HTML5 (via Haxe and OpenFL)

Jonathan50 wrote:

programmingbasics wrote:

Thanks for all your kind responses. I am not planning on doing any further development on the port in the near future. If anyone wants to take over the code, feel free to do so. I'm confident that it's possible to complete the port, though some of the remaining parts are a little tricky since they'll involve using many of the newer HTML5 APIs.

Although I badly want to see an HTML5 version of Scratch, the reality is that the Scratch team can't use any of my code. The Scratch code is released as open source under the GPL, so all my changes are also licensed under the GPL. Unfortunately, the version of Scratch used on the Scratch website isn't GPL, so it isn't allowed to incorporate my changes due to licensing issues. They would have to recode their own port from scratch . As such, I don't see much point in finishing the porting process since all the work would have to be redone anyway. I still view my port as a useful proof of concept that it is possible to make an HTML5 port of the codebase in a month or two if the Scratch team decide to go in that direction.
Oh, yes, since you hold the copyright for your changes.

I think you could sign some agreement to give them ownership of the code if you didn't mind.
Or ST could release all changes (such as cloud data, uploading) as GPL.

It's my understanding the non-GPLed bits are quite minimal; frankly, they'd be faster to rewrite than port for a lot of it.
Jonathan50
Scratcher
1000+ posts

I made a basic port of Scratch to HTML5 (via Haxe and OpenFL)

bobbybee wrote:

Jonathan50 wrote:

what it appears OpenFL themselves are doing the same thing… https://github.com/openfl/scratch-openfl
Waaaa…

Okay. Well, it's inactive anyway.

I think?
wait a minute

https://github.com/openfl/scratch-openfl/commits/master

Wow
OpenFL forked OP's project!
bobbybee
Scratcher
1000+ posts

I made a basic port of Scratch to HTML5 (via Haxe and OpenFL)

For what it's worth, I've been working on the paint editor + image editing.

so many compiler errors
Ethan_1
Scratcher
100+ posts

I made a basic port of Scratch to HTML5 (via Haxe and OpenFL)

bobbybee wrote:

For what it's worth, I've been working on the paint editor + image editing.
Glad to hear it. I would work on it, but I don't really know Haxe, and don't really have time. Ah well. Good luck and keep it up!
bobbybee
Scratcher
1000+ posts

I made a basic port of Scratch to HTML5 (via Haxe and OpenFL)

Ethan_1 wrote:

bobbybee wrote:

For what it's worth, I've been working on the paint editor + image editing.
Glad to hear it. I would work on it, but I don't really know Haxe, and don't really have time. Ah well. Good luck and keep it up!

I didn't before this either, although to be fair i've written some substantial games in AS3 in the past, so that helps.
2DhaXe
New Scratcher
2 posts

I made a basic port of Scratch to HTML5 (via Haxe and OpenFL)

Is it possible that anyone of you can make a real scratch.mit.edu to haxe gui?
And keep it up to date.
It can be a html5 application or a software file for the computer.
AXEstudios
Scratcher
100+ posts

I made a basic port of Scratch to HTML5 (via Haxe and OpenFL)

it keeps saying ‘access denied’
airplanedodge
Scratcher
1000+ posts

I made a basic port of Scratch to HTML5 (via Haxe and OpenFL)

AXEstudios wrote:

it keeps saying ‘access denied’
Fun fact: Scratch is using HTML5 already!
9gr
Scratcher
1000+ posts

I made a basic port of Scratch to HTML5 (via Haxe and OpenFL)

airplanedodge wrote:

AXEstudios wrote:

it keeps saying ‘access denied’
Fun fact: Scratch is using HTML5 already!
it's using js and react
4wngregus1
Scratcher
100+ posts

I made a basic port of Scratch to HTML5 (via Haxe and OpenFL)

it does not work

https://bobbybee.github.io/scratch-flash/release/
gives me a github error page

dev_Coding
Scratcher
1 post

I made a basic port of Scratch to HTML5 (via Haxe and OpenFL)

Unshared page
i_eat_coffee
Scratcher
1000+ posts

I made a basic port of Scratch to HTML5 (via Haxe and OpenFL)

dev_Coding wrote:

Unshared page
this post is from 2016 and the user hasn't been active since

Powered by DjangoBB