Boids for a 2D game: a flock of swallows and a school of fish, the tested Godot 4.6 project from
https://www.spritecook.ai/blog/boids-flocking-birds-fish-2d-game

Open this folder in Godot 4.6 and press play. Hold the left mouse button in the water to scare the fish.
Space shows one bird's neighbor circle and the steering force its rules add up to.
Gray-box sprites and colors stand in for art; there are no art files.

flock.gd     the flock: separation, alignment and cohesion, a goal that swings like a pendulum, soft walls,
             fleeing from a threat. step() once per physics tick
facing.gd    which way each small sprite faces (left or right) and its pitch (-15, 0 or 15 degrees), with a hold
lake.gd      the numbers for the swallows and the fish, and the scene's step()
play.gd/.tscn  the scene you can play. Everything is drawn into a 384 x 216 Image shown 3x
test.gd/.tscn  the headless test: godot --headless --path . res://test.tscn (prints RESULT {json})

All lengths are in art pixels, y down, stepped at 60 Hz.
