Discuss Scratch

QuillzToxic
Scratcher
1000+ posts

We're seeking contributors to help finish our HTML5 Scratch player (now open sourced!)

BoltBait wrote:

Anyone know the status of this project?

Is it ready for some testing yet?
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Babissimo
Scratcher
100+ posts

We're seeking contributors to help finish our HTML5 Scratch player (now open sourced!)

This is gonna be great bit what if a project requires for instance arrow keys because then you would need to edit the game for iOS and other phones and to do that with every project with arrow keys… Anyway just a thought
scimonster
Scratcher
1000+ posts

We're seeking contributors to help finish our HTML5 Scratch player (now open sourced!)

Babissimo wrote:

This is gonna be great bit what if a project requires for instance arrow keys because then you would need to edit the game for iOS and other phones and to do that with every project with arrow keys… Anyway just a thought
The HTML5 player actually has a feature to simulate arrow keys on touch devices. There are arrows around the player that you can touch.
VoltageGames
Scratcher
1000+ posts

We're seeking contributors to help finish our HTML5 Scratch player (now open sourced!)

HTML-Scratch? Super cool! Wait it's just scratch that runs with HTML? I was hoping it was a Scratch spin off that allowed you to simulate HTML webpages. HINT HINT.
ZinnKayos
Scratcher
16 posts

We're seeking contributors to help finish our HTML5 Scratch player (now open sourced!)

Lightnin wrote:

As many of you have pointed out, there's a need for a Scratch project player that works on mobile iOS and Android devices that don't support Flash. Tim Mickel, an MIT undergrad who worked with LLK, created a foundation for an HTML5 Scratch project player. But it still needs a lot of work. We decided to release the unfinished HTML5 player code under an open source license, and ask for contributions from the greater Scratch community.

Do you know someone with Javascript / HTML 5 skills that would like to contribute to Scratch? Please ping them with a link to the html5 Scratch project player on github!

https://github.com/LLK/scratch-html5

We don't plan to add any new features that the current Flash-based Scratch player doesn't support. Our goal is to make a player that plays Scratch projects exactly the same as the flash player. We've made a test harness, included with the source, so that coders can view projects in the flash player and the html 5 player side-by-side, to better isolate and fix differences in performance or behavior in the html5 player.

Thanks, and Scratch On!

Wait, Scratch on ipad? OMG that would be soo cool! I can't wait!!!!!!!
TC01017
Scratcher
100+ posts

We're seeking contributors to help finish our HTML5 Scratch player (now open sourced!)

This is gonna be awesome!
TheMatrixKid
Scratcher
100+ posts

We're seeking contributors to help finish our HTML5 Scratch player (now open sourced!)

OH YES!

I would do anything to help!
Failord
Scratcher
1000+ posts

We're seeking contributors to help finish our HTML5 Scratch player (now open sourced!)

WHEN WILL THIS BE DONE???

Oh wow I forgot I posted this… Well, please finish soon!

Last edited by Failord (Sept. 12, 2014 20:04:23)

jTron
Scratcher
100+ posts

We're seeking contributors to help finish our HTML5 Scratch player (now open sourced!)

Instructions for running on a Mac

I've tested this on OS X 10.9 (Mavericks.) It should work on all versions (+~10.5) but no promises.

You need to be (or be logged in as) an administrator to do most of these steps. Do that now.

Warning and Disclaimer: In order to do this you need the ability to use the command line and tinker with important files. You can't hold me accountable if you brick your mac. Please, read through all the steps first to make sure you are comfortable with everything I say to do. If not, get someone who you feel comfortable tinkering behind the scenes of your computer or ask for help.

1. Get your web server going.
OS X comes preinstalled with Apache, and here's how to start it up.
On previous versions of OS X, you could simply start it up by checking the “Web Sharing” box in System Preferences –> Sharing. You may want to see if you can do this first. If so, you can skip this step.
First, open up Terminal. (It's located at /Applications/Utilities/Terminal.app).
$ sudo apachectl start
Don't type the “$”. It only represents what you'll see in the command line.

You'll then need to type in your password.
Don't worry that you can't see any feedback. It's still listening, and when you press enter, it will go. If you get it wrong, try again. To cancel, press Control-C.

After that, head over to http://localhost in your browser - and if you can see “It works!” then, well, it works.

2. Set up your user-level document root.
This directory is (as of 10.9 I believe) missing by default. Head over to your home folder in Finder (⇧⌘H), then make a new folder called “Sites”.
At this point, you can copy "scratch-html5-master" into that folder, leave it in its folder or place its contents there, your choice.
Try going to, in your browser, http://localhost/~(yourusernamehere) , inserting your username where indicated. If you see an error, keep going. If you either see the proper site or a listing of file contents, skip to the step entitled “Enabling PHP.”

2-1. Connect your user-level document root to the web server.
Back to the terminal. Type in:
$ cd /etc/apache2/users
$ ls
Look for “(yourusername).conf”. If it's there, skip to “Enabling PHP.”
Now, type
$ sudo nano (yourusername).conf
Remember, replace “(yourusername)” with your short username and you may, if it's been long enough, need to retype your password.
Now, type in the following (quadruple-check for misspellings - swap in your username)
<Directory "/Users/(username)/Sites/">
Options Indexes MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Then press Ctrl-O Return Ctrl-X (⌃O, ⏎, ⌃X).

Do
$ sudo chmod 644 (username).conf
to properly set the permissions on the file.

And last, restart apache to read your new changes.
$ sudo apachectl restart

Check to make sure that http://localhost/~(yourusernamehere) is working now. If not, you may have messed up - go back and check for misspellings.

If you're using an up to date version of the Scratch-HTML5 Source, you no longer need this step. If so, skip it!
3. Enable PHP.
Be VERY, VERY careful on this step. You are modifying a system file. Triple-check EVERYTHING you are going to do BEFORE you do it (and how about after, too, for good measure)
Type
$ sudo nano /etc/apache2/httpd.conf
into Terminal. Then press Control-W (⌃W) and type “php” (then press enter.) This should put you on a line reading
#LoadModule php5_module libexec/apache2/libphp5.so
Use your arrow keys to move the cursor (the rectangle) over the “L” of “LoadModule” (make sure you stay on the “php” line) and then press delete (⌫). It should look like this:
LoadModule php5_module libexec/apache2/libphp5.so
Again, press Ctrl-O Return Ctrl-X (⌃O, ⏎, ⌃X) to save the file.


4. Restart apache
$ sudo apachectl restart
And head over to http://localhost/~(yourusernamehere) to see the site.

Remember, if you need help with anything, just ask. Everyone's here to help each other!


[Updated 9th September: subtly decreased snark levels, made corrections]

Last edited by jTron (Sept. 9, 2014 21:19:21)

TheMatrixKid
Scratcher
100+ posts

We're seeking contributors to help finish our HTML5 Scratch player (now open sourced!)

scrachet23 wrote:

well im a bit good at HTML but i dont think i have ever done HTML5 it sounds hard but when you try you may like it but mabey i need more info on this,while i play mario and think of luigi ok LETS A-GO


scratchet 23
HTML5 adds sound and video tags, drops some other tags and adds the canvas. Stepping up shouldn't be a worry.
TheMatrixKid
Scratcher
100+ posts

We're seeking contributors to help finish our HTML5 Scratch player (now open sourced!)

8discobusy wrote:

Will the scratch player support all versions of android and ios?
Plus will you have to be on a specific type of browser?

1. The Scratch Player should run on about anything.
2. No, but the faster the better. Scratch project rendering takes a fair amount of time.
TheMatrixKid
Scratcher
100+ posts

We're seeking contributors to help finish our HTML5 Scratch player (now open sourced!)

How would I test the code without a server or Mac?
camck-test
Scratcher
5 posts

We're seeking contributors to help finish our HTML5 Scratch player (now open sourced!)

I know html but not html5 or javascript
Swampert11
Scratcher
1000+ posts

We're seeking contributors to help finish our HTML5 Scratch player (now open sourced!)

Cool.
CloudScratcher
Scratcher
43 posts

We're seeking contributors to help finish our HTML5 Scratch player (now open sourced!)

I don't know a lot about JavaScript and things like that but It would be awesome if we did get Scratch for HTML5, Then people could use it on non-Flash devices like iPads and other tablets and Smartphones!
-Scribbler-
Scratcher
35 posts

We're seeking contributors to help finish our HTML5 Scratch player (now open sourced!)

Great! Now I can play them on my tablet
ijohn007
Scratcher
100+ posts

We're seeking contributors to help finish our HTML5 Scratch player (now open sourced!)

I am learning HTML, so I'll see if HTML5 makes sense to me
Quayl
Scratcher
85 posts

We're seeking contributors to help finish our HTML5 Scratch player (now open sourced!)

Please make this into a standalone ios and android app that works offline.
Zacshap21
Scratcher
100+ posts

We're seeking contributors to help finish our HTML5 Scratch player (now open sourced!)

Is it still to early to ask when? It seems a lot of people have posted in this forum topic so maybe that means a lot of people are helping out. Do you have an estimate at least? Does this mean I'll be able to edit my projects on an iOS device? How will I test them? If my game has a
<key [up arrow] pressed?>
in it, how will my iOS device click up arrow? I'm sure there is a simple solution to this though.

Good luck!

Last edited by Zacshap21 (Aug. 7, 2014 20:31:05)

supercreeper2005
Scratcher
100+ posts

We're seeking contributors to help finish our HTML5 Scratch player (now open sourced!)

GadgetAndyMan wrote:

WASDgamer wrote:

I am using IOS now, I am so greatful of the developers of the HTML5 version, I i will be able to use scratch anywhere :d
Have you tried the Puffin Browser, I use Scratch with it when I am on my iPad
Yes. But you know it is slow.

Powered by DjangoBB