-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How are we going to implement the blocks? #26
Comments
DOM elements |
OK. |
Dom elements with canvas block rendering like pixie? I tried to render cblocks with CSS and got nowhere useful. But maybe I suck at css |
Just had a brilliant idea: SVG. |
That is a good idea! It sounds much better than HTML + CSS |
YES |
Svg 😀 |
How do you type in an SVG? |
I don't know much about the ins and outs of svg but stackoverflow says contentEditable works on text. Hmm svg sounds like a bit of a hassle actually |
Ah, I forgot about inputs. :P |
Canvas? |
We could use this: https://github.com/nathan/visual |
If anyone can get it up and running, I'd love to see what it's capable of! |
I'll try and make a simple project with it to see if it will work for us. |
Okay, cool! :D |
STOP THE PRESS!!! (Wait, we don't have press :P) I just found https://developers.google.com/blockly/ what do you guys think of it? |
It's okay. It has my suggestion for properties implemented, but I still like making stuff ourselfs. |
http://codepen.io/robinp7720/pen/JdmJYo Also, I expected something like this to already exists, but this idea is apparently one of a type! This project might explode! :D Lets hope it doesnt die like go-anywhere or whatever it was called |
@BookOwl I thought everyone had seen that... Apparently not. :P @robinp7720 You're right - it doesn't look great now, but could be easily expanded on to be quite usable! :D |
Status Report: |
Unless anybody has another idea, we will work on @robin7720's css block styles and use that. |
I'd say try to adapt those styles and make them work, but I wouldn't set it in stone - if things don't go well, we should still be open to other options. |
what do you mean by c block wrapping? |
Like how scratch lets you wrap a c block around a stack of blicks |
ahhh I gotcha |
Ok thanks |
btw made a branch for it |
ok so idk how to git, but I got it to work I think: http://jsfiddle.net/Airhogs777/qba7yL01/ |
want me to put it here for you |
yes pl0x up next: c-wrapping |
will put it on the repo when I get a chance |
I tried to git I swear. I put the url into c9.io but it copied the main branch and I gave up |
windows.github.io |
noo I want to do it on the cloud, plus my mac doesn't do windows |
mac.github.com |
It doesn't run on computers as old as mine x( |
oh |
use your terminal |
WAIT I did something this might start to make sense soon make sure you have a backup of the entire repo because idk what I'm doing |
.... |
btw it doesn't work for some reason... sometimes it happens but mostly it works |
I've half-got it working, but imma take a break so here's c-wrapping for now: http://jsfiddle.net/Airhogs777/baj4ndr2/ |
both are kind of glitchy right now :( (block stacks are still buggy for me for some reason? is it just me?) |
Fixed the block stacks issue |
I've modified the padding of the blocks to be more sane. No way an entire HTML file would look half decent without the modification. Somone do the git thing plz. |
Working on it. |
Thanks! :) |
Yup, also made it so you have to be closer to the block to be able to stack them |
Not sure I get what you mean on that one. But it sounds useful. |
It is :P |
see title.
The text was updated successfully, but these errors were encountered: