Also, it it very confusing for me that one hand controls half the motion, and the other hand controls half the motion and firing. It seems that one hand should move and the other should fire (perhaps up tu jump, space to fire)?
This would probably be better:
public Arrow(double angle) {
}
public void addedToWorld(World world) {
x = getX();
y = getY();
}
public void move() { //call on every act
x += Math.sin(Math.toRadians(angle));
y += Math.cos(Math.toRadians(angle));
}
To create a left-pointing arrow:
getWorld().addObject(new Arrow(270), 580, 185);
2009/11/24
Carbon Patrol
2009/11/23
Got Waste?
2009/11/22
Archerman
2009/11/21
Archerman
2009/11/21
Archerman
2009/11/21
Archerman
2009/11/21
Archerman
2009/11/21
Archerman
2009/11/21
Archerman