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

#126 2012-04-01 13:51:29

poopo
Scratcher
Registered: 2009-09-20
Posts: 1000+

Re: ScratchJava

muppetds wrote:

*sighs* what was it?

it was in the rectangle intersection code.
it was:
x + width < rect.x || x > rect.x + rect.width || y + height < rect.y || y > rect.x + rect.height
instead of:
x + width < rect.x || x > rect.x + rect.width || y + height < rect.y || y > rect.y + rect.height

look closely.


http://i45.tinypic.com/28rnqki.jpg

Offline

 

#127 2012-04-01 14:04:53

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: ScratchJava

sighs bad poopo

update the source forge thing now


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#128 2012-04-01 16:34:43

poopo
Scratcher
Registered: 2009-09-20
Posts: 1000+

Re: ScratchJava

muppetds wrote:

sighs bad poopo

update the source forge thing now

-_-' sorry.
It still needs to be rewritten though because it still isn't stable.


http://i45.tinypic.com/28rnqki.jpg

Offline

 

#129 2012-04-02 03:18:40

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: ScratchJava

oh ok


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#130 2012-04-02 03:24:08

slinger
Scratcher
Registered: 2011-06-21
Posts: 1000+

Re: ScratchJava

It seems poopo is doing all the work around here...
:p


http://s0.bcbits.com/img/buttons/bandcamp_130x27_blue.png

Offline

 

#131 2012-04-02 03:25:21

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: ScratchJava

he is really  tongue

I'm just giving him ideas and helping him.


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#132 2012-04-02 15:53:39

ZeroLuck
Scratcher
Registered: 2010-02-23
Posts: 500+

Re: ScratchJava

Why don't you use the java.awt.Rectangle class?
It would be much easier for you, and the class is much faster implemented, too.

Code:

import java.awt.Rectangle;
...
int x = 10;
int y = 5;
int width = 10;
int height = 20;
Rectangle r = new Rectangle(x, y, width, height);
...
System.out.println(r.intersects(new Rectangle(15, 15, 10, 10));

Last edited by ZeroLuck (2012-04-02 15:56:31)


http://3.bp.blogspot.com/-oL2Atzp0Byw/T465vIQ36dI/AAAAAAAAADo/1vqL4PvhkM0/s1600/scratchdachwiki.png

Offline

 

#133 2012-04-02 16:22:47

poopo
Scratcher
Registered: 2009-09-20
Posts: 1000+

Re: ScratchJava

ZeroLuck wrote:

Why don't you use the java.awt.Rectangle class?
It would be much easier for you, and the class is much faster implemented, too.

Code:

import java.awt.Rectangle;
...
int x = 10;
int y = 5;
int width = 10;
int height = 20;
Rectangle r = new Rectangle(x, y, width, height);
...
System.out.println(r.intersects(new Rectangle(15, 15, 10, 10));

Didn't know it existed. Oh well.


http://i45.tinypic.com/28rnqki.jpg

Offline

 

#134 2012-04-03 21:20:22

slayerrobe7
Scratcher
Registered: 2011-06-24
Posts: 500+

Re: ScratchJava

nump hows all goin need anything yet


!!!When it comes to Scratch2.0 I am totally like freaking out!!!

Offline

 

#135 2012-04-04 11:09:56

poopo
Scratcher
Registered: 2009-09-20
Posts: 1000+

Re: ScratchJava

I'm still rewriting and it's going great.  smile


http://i45.tinypic.com/28rnqki.jpg

Offline

 

#136 2012-04-04 11:21:11

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: ScratchJava

yay
when will you be done?


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#137 2012-04-04 11:43:18

poopo
Scratcher
Registered: 2009-09-20
Posts: 1000+

Re: ScratchJava

muppetds wrote:

yay
when will you be done?

Pretty soon I just need to debug some stuff.  smile


http://i45.tinypic.com/28rnqki.jpg

Offline

 

#138 2012-04-04 12:16:31

slayerrobe7
Scratcher
Registered: 2011-06-24
Posts: 500+

Re: ScratchJava

yeah i recently heard a quote from someone
"programing is 10% writing codes and 90% debugging it"


!!!When it comes to Scratch2.0 I am totally like freaking out!!!

Offline

 

#139 2012-04-04 14:08:09

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: ScratchJava

slayerrobe7 wrote:

yeah i recently heard a quote from someone
"programing is 10% writing codes and 90% debugging it"

PF i think it was


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#140 2012-04-04 19:53:18

slayerrobe7
Scratcher
Registered: 2011-06-24
Posts: 500+

Re: ScratchJava

bump so what is the name for this


!!!When it comes to Scratch2.0 I am totally like freaking out!!!

Offline

 

#141 2012-04-07 07:42:11

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: ScratchJava

Bumpity bump


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#142 2012-04-07 07:43:34

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: ScratchJava

muppetds wrote:

slayerrobe7 wrote:

yeah i recently heard a quote from someone
"programing is 10% writing codes and 90% debugging it"

PF i think it was

Nope, but it's true.

Offline

 

#143 2012-04-11 05:03:24

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: ScratchJava

Bumpity bump


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#144 2012-04-11 15:44:56

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: ScratchJava

I'm on my own little java scratch project


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#145 2012-04-12 12:29:01

slayerrobe7
Scratcher
Registered: 2011-06-24
Posts: 500+

Re: ScratchJava

bump


!!!When it comes to Scratch2.0 I am totally like freaking out!!!

Offline

 

#146 2012-04-12 16:33:02

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: ScratchJava

hello poopo?


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#147 2012-04-12 16:57:41

poopo
Scratcher
Registered: 2009-09-20
Posts: 1000+

Re: ScratchJava

I've hit a bit of a stop. I'll release what ever I have on saturday.  smile


http://i45.tinypic.com/28rnqki.jpg

Offline

 

#148 2012-04-13 04:44:41

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: ScratchJava

ok


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#149 2012-04-16 09:25:06

s_federici
Scratcher
Registered: 2007-12-18
Posts: 500+

Re: ScratchJava

ZeroLuck wrote:

I and TRocket are doing this too. The code is here: http://sourceforge.net/p/jblocks/code-0/
( But don't copy/steal it )

And where can I download an executable? (jar, jnlp, etc)

Offline

 

#150 2012-04-22 16:23:38

slayerrobe7
Scratcher
Registered: 2011-06-24
Posts: 500+

Re: ScratchJava

bumpity


!!!When it comes to Scratch2.0 I am totally like freaking out!!!

Offline

 

Board footer