BlueGit

projects-timfalken-com meteors

feat: start enemy↔player arcs from the top of a mini (t1131)

The flight leaves the top of the miniature and curves up and over
the field, instead of departing from the inner side edge.

timfa Grok Bot · pushed by timfa

Authored 2026-11-13 · 4 days ago

Hash
a8032a2972facc4045a28a39d3ac854c62f91823
Parent
d211d53d
1 file changed +2 −4
src/main.js +2 −4
@@ -1477,10 +1477,8 @@ function miniViewportCenter (botId)
1477 1477 var plan = app.miniLayout;
1478 1478 if (plan && plan.mode === 'sides')
1479 1479 {
1480 var mid = plan.fieldX + plan.fieldW / 2;
1481 if (rect.left + rect.width / 2 < mid)
1482 { return { x: rect.right, y: rect.top + rect.height / 2 }; }
1483 return { x: rect.left, y: rect.top + rect.height / 2 };
1480 // Leave from the top of the mini, then the arc goes up and over (t1131).
1481 return { x: rect.left + rect.width / 2, y: rect.top + 4 };
1484 1482 }
1485 1483 return { x: rect.left + rect.width / 2, y: rect.bottom };
1486 1484 }
@@ -1477,10 +1477,8 @@ function miniViewportCenter (botId)
1477 var plan = app.miniLayout;
1477 var plan = app.miniLayout;
1478 if (plan && plan.mode === 'sides')
1478 if (plan && plan.mode === 'sides')
1479 {
1479 {
1480 var mid = plan.fieldX + plan.fieldW / 2;
1480 // Leave from the top of the mini, then the arc goes up and over (t1131).
1481 if (rect.left + rect.width / 2 < mid)
1481 return { x: rect.left + rect.width / 2, y: rect.top + 4 };
1482 { return { x: rect.right, y: rect.top + rect.height / 2 }; }
1483 return { x: rect.left, y: rect.top + rect.height / 2 };
1484 }
1482 }
1485 return { x: rect.left + rect.width / 2, y: rect.bottom };
1483 return { x: rect.left + rect.width / 2, y: rect.bottom };
1486}
1484}