How bujin2502/vas works
This is a single-file, interactive boids simulation: the user starts, stops, resets, or exits a flock whose members move according to alignment, cohesion, separation, and obstacle avoidance. A SPADE agent behaviour updates and draws each boid; the main loop creates agents and handles controls. The README documents Prosody as the XMPP server used for agent accounts. Components and links are based on the sampled boid.py and README; no separate storage or unsampled implementation is indicated.
Main entry points: boid.py Boid motion
Components 15
Simulation setup
- Simulation loop
boid.py - Button controls
boid.py - Flock state
boid.py - Obstacle field
boid.py
Flock behavior
- Boid motion
boid.py - Alignment
boid.py - Cohesion
boid.py - Separation
boid.py - Obstacle avoidance
boid.py
Agent and display
- Boid agent
boid.py - Move behaviour
boid.py - Scene rendering
boid.py
Other components
- User
- Pygame window
- Prosody server
Connections 17
- User → Button controls: clicks
boid.py - Button controls → Simulation loop: sets simulation state
boid.py - Simulation loop → Flock state: creates and resets
boid.py - Simulation loop → Obstacle field: creates
boid.py - Simulation loop → Boid agent: creates and starts
boid.py - Boid agent → Move behaviour: registers
boid.py - Move behaviour → Boid motion: updates
boid.py - Move behaviour → Flock state: iterates for drawing
boid.py - Move behaviour → Obstacle field: draws
boid.py - Move behaviour → Scene rendering: draws scene
boid.py - Scene rendering → Pygame window: flips frame
boid.py - Boid motion → Alignment: applies
boid.py - Boid motion → Cohesion: applies
boid.py - Boid motion → Separation: applies
boid.py - Boid motion → Obstacle avoidance: applies
boid.py - Obstacle avoidance → Obstacle field: checks positions
boid.py - Boid agent → Prosody server: connects as XMPP agent
README.md