So with this it would be perfect
public Bar(String refText, String unitType, int initValue, int maxValue, int barw, int barh)
{
referenceText = refText;
unitOfMeasure = unitType;
maximumValue = maxValue;
barWidth = barw;
barHeight = barh;
add(initValue);
}
If you have two points, you can calculate the angle and from the angle and two points you can draw the line. Now you just have to implement this math things in java and write a algorithm which draw a line from the angle. Am i right?
@erdelf
Nice one.
I did it with my math skill. I did not use methods from Greenfoot.
Please look at this site to see how i did it!!!:
http://www.bytelord.jimdo.com/java/
I'll send you the code give me your email.
2012/7/5
Progress bar/Health bar class
2012/7/5
Progress bar/Health bar class
2012/7/4
Physics
2012/7/2
Line Drawing
2012/7/2
2D-Aimbot
2012/7/2
Castle Storm II
2012/7/2
Physics
2012/7/1
2d Aimbot (erdelf version)
2012/6/28
2D-Aimbot