Read the brief.
Find the machine.
The prompt names the world, controls and landing rules. HTML is the page; CSS gives it its appearance; JavaScript provides its behavior. Canvas is the drawing area. The agent writes handlers that respond to a key or button and updates the picture from the flight numbers.
Use gravity 1.62 m/s^2, engine acceleration 4.8 m/s^2 and fuel consumption 10 units per second.
The motion calculation changes velocity, or speed with direction, over time. Gravity pulls downward; the engine accelerates along the craft’s tilt and spends fuel. These values must reach the same update that advances the flight.
A landing succeeds only at x=45 through 55
x is horizontal position in metres: 50 is the middle of the 100-metre world. A touchdown between 45 and 55 still needs safe speed and tilt. The orange drawing and the success check must use the same pad limits.
Separate the physics from drawing so the rules can be tested.
Calculate motion separately from painting the screen. A check can then supply known starting numbers, advance one step and inspect the result. Repeating an empty-tank case should produce the same fuel and motion result.