tx2 = x2 + kage.kMage * Math.cos(rad) * v;\r
ty2 = y2 + kage.kMage * Math.sin(rad) * v;\r
}\r
- tx3 = x3 - kage.kMage;\r
+ tx3 = x3;\r
ty3 = y3;\r
- tx4 = x3 + kage.kMage * 0.5; // ... not used\r
- ty4 = y3 - kage.kMage * 2; // ... not used\r
\r
cdDrawLine(kage, polygons, x1, y1, tx1, ty1, a2, 1);\r
cdDrawCurve(kage, polygons, tx1, ty1, x2, y2, tx2, ty2, 1, 1);\r
- cdDrawLine(kage, polygons, tx2, ty2, tx3, ty3, 6, 5); // bolder by force\r
+ if(tx3 - tx2 > 0){ // for closer position\r
+ cdDrawLine(kage, polygons, tx2, ty2, tx3, ty3, 6, 5); // bolder by force\r
+ }\r
}\r
else{\r
if(x1 == x2){\r
tx2 = x2 + kage.kMage * Math.cos(rad) * v * rate;\r
ty2 = y2 + kage.kMage * Math.sin(rad) * v * rate;\r
}\r
- tx3 = x3 - kage.kMage;\r
+ tx3 = x3;\r
ty3 = y3;\r
- tx4 = x3 + kage.kMage * 0.5; // ... not used\r
- ty4 = y3 - kage.kMage * 2; // ... not used\r
\r
cdDrawLine(kage, polygons, x1, y1, tx1, ty1, a2, 1);\r
cdDrawCurve(kage, polygons, tx1, ty1, x2, y2, tx2, ty2, 1, 1);\r
- cdDrawLine(kage, polygons, tx2, ty2, tx3, ty3, 6, 5); // bolder by force\r
+ if(tx3 - tx2 > 0){ // for closer position\r
+ cdDrawLine(kage, polygons, tx2, ty2, tx3, ty3, 6, 5); // bolder by force\r
+ }\r
}\r
else{\r
if(x1 == x2){\r