Can’t seem to control my character at all and there are errors.
Edit: Tried again on a later day and it was working.
The main strategy is to keep moving around in order to avoid the fireballs.
Though I didn’t bother using flags and came up with a one line solution:
One Line Solution
loop this.move(Vector.add(this.pos, Vector.multiply(Vector(Math.cos(0.9 * this.now()), Math.sin(0.9 * this.now())), 10)));
Though with that many catapults and fireballs it’s probably going to cause a performance drag if one tried to use flags.