This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#26 2012-12-29 11:56:08

al-x
New Scratcher
Registered: 2012-10-03
Posts: 100+

Re: Catnip: Scratch for HTML5 Web Browsers

Can I have some credit please?  because I don't really want to help if you just take my code  smile

Offline

 

#27 2012-12-29 12:49:26

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: Catnip: Scratch for HTML5 Web Browsers

al-x wrote:

Can I have some credit please?  because I don't really want to help if you just take my code  smile

Added credits to bottom of main topic post.

Offline

 

#28 2012-12-29 12:50:12

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Catnip: Scratch for HTML5 Web Browsers

al-x wrote:

veggieman001 wrote:

Couldn't you use a float on their container div or something of the sort?

I'm not too sure I tried a couple varieties of div but none of them worked  sad

Well, if you did float:left; on both the canvas and the editor, then it'd probably work.


Posts: 20000 - Show all posts

Offline

 

#29 2012-12-29 12:53:24

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: Catnip: Scratch for HTML5 Web Browsers

veggieman001 wrote:

al-x wrote:

veggieman001 wrote:

Couldn't you use a float on their container div or something of the sort?

I'm not too sure I tried a couple varieties of div but none of them worked  sad

Well, if you did float:left; on both the canvas and the editor, then it'd probably work.

If you want to submit code for the DIV float, then feel free. Make sure the code is compatible and not too messy.

(You can view the source code by right-clicking and selecting the option that says 'View Source' and make sure your code is compatible.)

Offline

 

#30 2012-12-29 13:19:56

al-x
New Scratcher
Registered: 2012-10-03
Posts: 100+

Re: Catnip: Scratch for HTML5 Web Browsers

rdococ wrote:

al-x wrote:

Can I have some credit please?  because I don't really want to help if you just take my code  smile

Added credits to bottom of main topic post.

thanks  smile

Offline

 

#31 2012-12-29 16:05:10

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Catnip: Scratch for HTML5 Web Browsers

The "arc shape" measurement isn't multiplied by pi anywhere. It just starts at 15 radians and goes counterclockwise to the value given? I think this:

Code:

…
cxt.arc(document.data.sprite1x.value, document.data.sprite1y.value, document.data.sprite1s.value, 0, document.data.sprite1a.value * Math.PI, false);
…

makes more sense.

Also, "Interpretate" is not a word.

Last edited by nXIII (2012-12-29 16:05:37)


nXIII

Offline

 

#32 2012-12-29 16:11:59

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: Catnip: Scratch for HTML5 Web Browsers

nXIII wrote:

The "arc shape" measurement isn't multiplied by pi anywhere. It just starts at 15 radians and goes counterclockwise to the value given? I think this:

Code:

…
cxt.arc(document.data.sprite1x.value, document.data.sprite1y.value, document.data.sprite1s.value, 0, document.data.sprite1a.value * Math.PI, false);
…

makes more sense.

Also, "Interpretate" is not a word.

It was multiplied by PI before; I'm not sure what update removed the multiplication. But thanks for finding that out. I think I'll remove the multiplication by PI wording.

By the way: I think you could really help with the coding of Catnip. You could even add the blocks that would make Catnip much more closely related with Scratch.

Offline

 

#33 2012-12-29 16:31:39

XenoK
Scratcher
Registered: 2011-09-08
Posts: 1000+

Re: Catnip: Scratch for HTML5 Web Browsers

I'm good with CSS3, and HTML5.  I could help with the design of things


Eternity Tasks has launched into Alpha One! http://tasks.eternityincurakai.com/EI%20projects.png

Offline

 

#34 2012-12-30 14:43:43

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Catnip: Scratch for HTML5 Web Browsers

rdococ wrote:

veggieman001 wrote:

al-x wrote:


I'm not too sure I tried a couple varieties of div but none of them worked  sad

Well, if you did float:left; on both the canvas and the editor, then it'd probably work.

If you want to submit code for the DIV float, then feel free. Make sure the code is compatible and not too messy.

(You can view the source code by right-clicking and selecting the option that says 'View Source' and make sure your code is compatible.)

No thanks, I was just trying to help al-x with his problem.


Posts: 20000 - Show all posts

Offline

 

#35 2013-03-29 05:25:49

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: Catnip: Scratch for HTML5 Web Browsers

Have a second look at Catnip. It's been updating all this time the topic has been computationally rotting. Let's blow the dust off the topic and continue talking about Catnip here.

Offline

 

Board footer