if(a2 == 15){ //jump up ... it can change 15->5\r
// anytime same degree\r
poly = new Polygon();\r
- poly.push(x2, y2 - kMinWidthT + 1);\r
- poly.push(x2 + 2, y2 - kMinWidthT - kage.kWidth * 5);\r
- poly.push(x2, y2 - kMinWidthT - kage.kWidth * 5);\r
- poly.push(x2 - kMinWidthT, y2 - kMinWidthT + 1);\r
+ if(y1 < y2){\r
+ poly.push(x2, y2 - kMinWidthT + 1);\r
+ poly.push(x2 + 2, y2 - kMinWidthT - kage.kWidth * 5);\r
+ poly.push(x2, y2 - kMinWidthT - kage.kWidth * 5);\r
+ poly.push(x2 - kMinWidthT, y2 - kMinWidthT + 1);\r
+ } else {\r
+ poly.push(x2, y2 + kMinWidthT - 1);\r
+ poly.push(x2 - 2, y2 + kMinWidthT + kage.kWidth * 5);\r
+ poly.push(x2, y2 + kMinWidthT + kage.kWidth * 5);\r
+ poly.push(x2 + kMinWidthT, y2 + kMinWidthT - 1);\r
+ }\r
polygons.push(poly);\r
}\r
\r