|
|
|
|
@ -358,15 +358,15 @@ public class ResizableRaceCanvas extends ResizableCanvas {
|
|
|
|
|
|
|
|
|
|
//The x coordinates of each vertex of the boat.
|
|
|
|
|
double[] x = {
|
|
|
|
|
pos.getX() - 12,
|
|
|
|
|
pos.getX() - 9,
|
|
|
|
|
pos.getX(),
|
|
|
|
|
pos.getX() + 12 };
|
|
|
|
|
pos.getX() + 9 };
|
|
|
|
|
|
|
|
|
|
//The y coordinates of each vertex of the boat.
|
|
|
|
|
double[] y = {
|
|
|
|
|
pos.getY() + 24,
|
|
|
|
|
pos.getY() - 24,
|
|
|
|
|
pos.getY() + 24 };
|
|
|
|
|
pos.getY() + 15,
|
|
|
|
|
pos.getY() - 15,
|
|
|
|
|
pos.getY() + 15 };
|
|
|
|
|
|
|
|
|
|
//The above shape is essentially a triangle 24px wide, and 48 long.
|
|
|
|
|
|
|
|
|
|
|