Skip to content

pursuit: render agents as squares instead of circles - #1399

Open
RewardGuard wants to merge 4 commits into
Farama-Foundation:mainfrom
RewardGuard:pursuit-square-agents
Open

pursuit: render agents as squares instead of circles#1399
RewardGuard wants to merge 4 commits into
Farama-Foundation:mainfrom
RewardGuard:pursuit-square-agents

Conversation

@RewardGuard

Copy link
Copy Markdown
Contributor

Description

Fixes #1360.

Changes the pursuit agents (pursuers and evaders) from circles to filled squares slightly smaller than the grid cells, restoring the visual style the environment had before it was ported to PyGame (as requested in the issue).

Each agent is now drawn as a square sized to 80% of a grid cell and centered within it, so the small gap between adjacent agents reads as a grid again.

Type of change

  • Bug fix / visual fix (non-breaking change)

This is purely a rendering change — environment dynamics, observations, and rewards are unchanged, so no version bump is required.

Checklist:

  • api_test passes for pursuit_v5.
  • Rendered rgb_array output visually verified (red pursuers and blue evaders now render as squares).
  • I have commented my code.

🤖 Generated with Claude Code

@jkterry1

Copy link
Copy Markdown
Member

@RewardGuard I apologize for the hassle, but could you please rebase your changes off main?

Draw pursuers and evaders as filled squares slightly smaller than the grid
cells (80% of a cell, centered), restoring the look the environment had
before it was ported to PyGame.

Fixes Farama-Foundation#1360.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@RewardGuard
RewardGuard force-pushed the pursuit-square-agents branch from 4cf24fc to 03ae865 Compare July 14, 2026 18:31
@jkterry1

Copy link
Copy Markdown
Member

@RewardGuard this needs to include an updated gif

@jkterry1

Copy link
Copy Markdown
Member

@virgilt this needs a new gif before we can merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Change pursuit agents from circles to squares slightly smaller than the grid boxes

2 participants