5 minutes
On Target Means Delivered
The aim line turns green when its ghost reaches the plant. A rock fired under a green line has to land there, at 30 fps as surely as at 120.
Look after every step
A frame is several fixed steps of 1/120 s, as in Draw the Shot First: two at 60 fps, four at 30. The ghost checks the plant after every step. If the game looked only once a frame, this could happen with a hole parked on the plant's edge:
So GravityBody checks the zones after every step, as the ghost does, and halts a body on the step it arrives. One that starts a frame inside a zone flies on. We swept single shots through this scene on 35 headings, past a hole parked at 8 spots 2.7 to 3.3 units from the plant's centre:
Continue reading
Unlock the Full Course
Every lesson, the runnable examples, and the finished build — yours to keep.