One Formula, One Shot
Write a single function f(x). Your bullet always starts at your own position
and follows the curve as it travels. x = horizontal distance flown (0 → 1300). Positive
f(x) curves up, negative curves down.
Firing direction
Tap the ▶ / ◀ button to choose whether the bullet flies right or left.
Straight horizontal shot:
f(x) = 0
Diagonal shot (climbs 1 unit per 2 travelled):
f(x) = 0.5 * x
Wave (slips through obstacle gaps):
f(x) = 80 * sin(x / 60)
Mortar arc (up, then falls behind cover):
f(x) = x - x^2 / 400
Safety constraints
Functions allowed: sin, cos, tan, abs, sqrt, log, min, max, floor, ceil. Operators allowed:
+, -, *, /, ^, %. Invalid syntax results in an inactive shot (bullet drops immediately).