the pattern is reminiscent of galaga, though not how galaga would have done it - galaga was pattern-driven, very little cpu or memory needed.
fe, imagine as a starting point a “pattern language” (think: turtle graphics) where:
L means turn left by 1/32 full rotation
R means turn right by 1/32 full rotation
F means move forward at given speed
assume that multiple opcodes can be packed into a single per-frame command (comma separates them below)
then a “bump out to the right, then descend with a loop, then continue off left” might look roughly like
– go right and forward until facing downward-left
RF,RF,RF,RF,RF,
– continue down downward-left a bit
F,F,F,F,F,F,
– do a full turn-right tight (double turn speed) loop
RRF, (x16)
– again facing down-left, run last command til off screen
F,
same “script” could then be repurposed as mirrored left-hand variant with a bit-inversion for the R/L coding.
(btw, i’m not saying that’s exactly how galaga did it, but something along those lines, just fwiw)