Skip to content
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

Closed
BookOwl opened this issue Jul 21, 2015 · 244 comments
Closed

How are we going to implement the blocks? #26

BookOwl opened this issue Jul 21, 2015 · 244 comments

Comments

@BookOwl
Copy link
Contributor

BookOwl commented Jul 21, 2015

see title.

@matthewr6
Copy link
Contributor

DOM elements

@BookOwl
Copy link
Contributor Author

BookOwl commented Jul 21, 2015

OK.

@BookOwl BookOwl closed this as completed Jul 21, 2015
@quat1024
Copy link
Contributor

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

@PullJosh
Copy link
Contributor

Just had a brilliant idea: SVG.

@BookOwl
Copy link
Contributor Author

BookOwl commented Jul 24, 2015

That is a good idea! It sounds much better than HTML + CSS

@an-OK-squirrel
Copy link
Contributor

YES
I LOVE S'VG

@quat1024
Copy link
Contributor

Svg 😀

@matthewr6
Copy link
Contributor

How do you type in an SVG?

@quat1024
Copy link
Contributor

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

@PullJosh
Copy link
Contributor

Ah, I forgot about inputs. :P

@BookOwl
Copy link
Contributor Author

BookOwl commented Jul 24, 2015

Canvas?

@BookOwl
Copy link
Contributor Author

BookOwl commented Jul 24, 2015

We could use this: https://github.com/nathan/visual

@PullJosh
Copy link
Contributor

If anyone can get it up and running, I'd love to see what it's capable of!

@BookOwl
Copy link
Contributor Author

BookOwl commented Jul 24, 2015

I'll try and make a simple project with it to see if it will work for us.

@PullJosh
Copy link
Contributor

Okay, cool! :D

@BookOwl
Copy link
Contributor Author

BookOwl commented Jul 24, 2015

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?

@an-OK-squirrel
Copy link
Contributor

It's okay. It has my suggestion for properties implemented, but I still like making stuff ourselfs.

@robinp7720
Copy link
Contributor

http://codepen.io/robinp7720/pen/JdmJYo
I know, it looks horrible and the design needs to be improved but this would be very easy to expand and would work for us as html is a markup language. Not a scripting lanuage. Blocky seams to be better for scripting languages. Could be used as a javascript IDE?

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

@PullJosh
Copy link
Contributor

@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

@BookOwl
Copy link
Contributor Author

BookOwl commented Jul 25, 2015

Status Report:
Blocky: as @robin7720 said, it would work great as a script editor, but not for markup. I don't think that it will work for elemental.
Visual: I tried to make the test. Really, I did! But visual is a long, cryptic piece of of code with no comments or documentation, and the only demo is pixie, which is equally confusing. It might work, but only if somebody smarter than me can figure out how to use it.
@robin7720's block thingie:
It. Looks. AWSOME! It still needs a little work, but I think we can use it!

@BookOwl
Copy link
Contributor Author

BookOwl commented Jul 25, 2015

Unless anybody has another idea, we will work on @robin7720's css block styles and use that.

@PullJosh
Copy link
Contributor

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.

@mrjacobbloom
Copy link
Contributor

what do you mean by c block wrapping?

@matthewr6
Copy link
Contributor

Like how scratch lets you wrap a c block around a stack of blicks

@mrjacobbloom
Copy link
Contributor

ahhh I gotcha

@matthewr6
Copy link
Contributor

Ok thanks

@matthewr6
Copy link
Contributor

btw made a branch for it

@mrjacobbloom
Copy link
Contributor

ok so idk how to git, but I got it to work I think: http://jsfiddle.net/Airhogs777/qba7yL01/

@matthewr6
Copy link
Contributor

want me to put it here for you

@mrjacobbloom
Copy link
Contributor

yes pl0x

up next: c-wrapping

@matthewr6
Copy link
Contributor

will put it on the repo when I get a chance

@mrjacobbloom
Copy link
Contributor

I tried to git I swear. I put the url into c9.io but it copied the main branch and I gave up

@matthewr6
Copy link
Contributor

windows.github.io

@mrjacobbloom
Copy link
Contributor

noo I want to do it on the cloud, plus my mac doesn't do windows

@matthewr6
Copy link
Contributor

mac.github.com
or use git in your terminal

@mrjacobbloom
Copy link
Contributor

It doesn't run on computers as old as mine x(

@matthewr6
Copy link
Contributor

oh

@matthewr6
Copy link
Contributor

use your terminal

@mrjacobbloom
Copy link
Contributor

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

@matthewr6
Copy link
Contributor

....
um please don't then

@matthewr6
Copy link
Contributor

btw it doesn't work for some reason...
Uncaught TypeError: Cannot read property 'offsetLeft' of null

sometimes it happens but mostly it works

@mrjacobbloom
Copy link
Contributor

I've half-got it working, but imma take a break so here's c-wrapping for now: http://jsfiddle.net/Airhogs777/baj4ndr2/

@matthewr6
Copy link
Contributor

both are kind of glitchy right now :( (block stacks are still buggy for me for some reason? is it just me?)
anyways, this is so awesome :D

@matthewr6
Copy link
Contributor

Fixed the block stacks issue
http://jsfiddle.net/Firedrake969/h9t2p7wf/

@PullJosh
Copy link
Contributor

PullJosh commented Aug 2, 2015

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.

@matthewr6
Copy link
Contributor

Working on it.

@PullJosh
Copy link
Contributor

PullJosh commented Aug 2, 2015

Thanks! :)

@matthewr6
Copy link
Contributor

Yup, also made it so you have to be closer to the block to be able to stack them

@PullJosh
Copy link
Contributor

PullJosh commented Aug 2, 2015

Not sure I get what you mean on that one.

But it sounds useful.

@matthewr6
Copy link
Contributor

It is :P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants