Hi folks,
I wanted to let you know about a project I've been working on to bring scratch-like blocks to web browsers. The project is called Waterbear and I credit Scratch with the inspiration. The implementation is done entirely in HTML/CSS/Javascript. It is still pretty raw, but the web site is up and the code is on Github.
http://waterbearlang.com/ (currently drops you into the demo)
@waterbearlang on Twitter
https://github.com/dethe/waterbear
I presented it for the first time today at JSConf in Portland, OR. There's a writeup at ReadWriteWeb:
http://www.readwriteweb.com/hack/2011/05/waterbear-is-like-scratch-but.php
I'd love to hear what folks in the Scratch community think about Waterbear.
--Dethe
Offline
That is quite interesting! I can't find blocks like [say []] though, and are there sprites?
Offline
This would be great! Love the idea!
Offline
Omg! Amazing!
Offline
ITOPIC THIS MODERATORS PLEASE!
Last edited by Pecola1 (2011-05-04 12:54:14)
Offline
Pecola1 wrote:
Itopic This Moderators Please!
Thats weird, I did all capital and it changed to only the beginning letters capital.
Offline
Pecola1 wrote:
Pecola1 wrote:
Itopic This Moderators Please!
Thats weird, I did all capital and it changed to only the beginning letters capital.
It's the caps filter. You can put [b][/b] at the end and it will stay capitalized.
Offline
Wow. It's amazing to think that a webpage can do that...
You did an incredibly good job on this, I can't wait until it's complete!
May I suggest an "alert()" block?
Offline
Love the fact that you can see the code for it aswell as the blocks!
Offline
markyparky56 wrote:
Love the fact that you can see the code for it aswell as the blocks!
Yup, that's a great feature! It helps you learn too, as well as (more importantly) being able to export it to your own site.
Offline
Thanks all. I'm not trying to build Scratch in the browser (so not all blocks will make it into waterbear) and it doesn't have sprites (yet). This is still an early alpha, but wanted to let the Scratch community know what I was doing. The idea is to expose a tool for making block syntax for any language or library, and to provide a bridge between visual programming with blocks and text-based programming (thus the text view).
Eventually I want to make the Waterbear scripts easy to embed in any website, still a lot to do. I will be adding documentation to http://waterbearlang.com/ showing how to wrap a library or language in Waterbear very soon.
Offline
delza wrote:
Thanks all. I'm not trying to build Scratch in the browser (so not all blocks will make it into waterbear) and it doesn't have sprites (yet). This is still an early alpha, but wanted to let the Scratch community know what I was doing. The idea is to expose a tool for making block syntax for any language or library, and to provide a bridge between visual programming with blocks and text-based programming (thus the text view).
Eventually I want to make the Waterbear scripts easy to embed in any website, still a lot to do. I will be adding documentation to http://waterbearlang.com/ showing how to wrap a library or language in Waterbear very soon.
Because of the text I can make HTML scripts! Without the sprites you cant do too much, will you make a save and load game feature? Will it save online?
Offline
dpimental wrote:
All, I can't seem to get the waterbearlang.com site working - using Moz. 4.0.1 - is some documentation I can get my hands on - I know it's very alpha.
You cant actually make a sprite yet, is there an error?
Offline
dpimental wrote:
I'm not real familiar with Scratch - but once I put the blocks together, how do I run it. Or do I grab the code and run it separately? Excuse my igorance - !
click run in the top right corner.
Offline
I am using mozilla 4.0.1 and my browser is maximized and it doesn't show all the tabs. Besides Script Blocks and Script Text, it shows restore, save, demos, clear scripts, show stage, run. You have to scroll to the right to see Back to Script, Restore Stage, Run. No matter which "run" I click on, nothing seems to happen?
Am I missing something. Do I need to install something else? I am running Windows 7 (32 bit) and downloaded the zipped version. Other than that, I am running in Firefox 4.0.1.
Any ideas what I missed?
Offline
I have win 7 too. When you click run, it scrolls you to the 'stage'. Then click the back to scripts button to see the scripts, or you can just scroll back and forth, there aren't any sprites yet so you cant really make a game.
Offline
I am trying to just show the text "Hello World" at coordinates x (0) and y(0) and it gives me the following error in the error console.
Error: invalid property id
Source File: http://waterbearlang.com/
Line: 4, Column: 33
Source Code:
local.shape = global.paper.text({{2}}, {{3}}, "{{1}}");
Offline
dpimental wrote:
I am trying to just show the text "Hello World" at coordinates x (0) and y(0) and it gives me the following error in the error console.
Error: invalid property id
Source File: http://waterbearlang.com/
Line: 4, Column: 33
Source Code:
local.shape = global.paper.text({{2}}, {{3}}, "{{1}}");
Sorry, I cant help there.
Offline
dpimental wrote:
Did you need to install anything additional? What browser and version are you using?
No download. Chrome, and Window 7. I don't know the version of Chrome, the newest.
Offline
dpimental wrote:
Did you need to install anything additional? What browser and version are you using?
What i it that doesn't work? For me it wont run scripts, mostly because there isn't a sprite yet.
Offline
So waterbear is still very early and rough. It works in Safari, and I'll be adding support for Firefox and Chrome shortly. There are no sprites yet -- the goal is not to create Scratch in the browser, but to use Scratch-like block syntax for writing code in a variety of languages.
There were some problems with a few blocks which were fixed yesterday, so if you were getting syntax errors, try again.
Offline