agrfun 1.0.0

Download zip

class: Bomber

[51:7] extends: object

A bomber crosses the AGR FXGL window and drops a stick of bombs. Build one and call run(). The plane comes in off the left edge, flies level at a random height in the top half of the window, and leaves off the right. Somewhere in the left half it lets go of a short string of bombs. Each bomb takes half the plane's forward speed with it and falls under gravity, so it arcs away ahead of where it was dropped while the plane draws ahead of it, and bursts when it reaches the bottom of the window. The numbers at the top of the class are the dials. Change them to alter the flight, the bombs, or the blasts.

Members

Methods