Pewarta Proxy

📋 Server Request & Proxy Logs

Loading active proxy settings...
Developed by Khairul Adha (adhexa.id)
Mengambil log server...

⚙️ Pengaturan Proxy Target

Skip to content

Default missing layer offset axes independently - #90

Open
civilwarinfrance wants to merge 1 commit into
pythonarcade:developmentfrom
civilwarinfrance:fix/independent-layer-offsets
Open

civilwarinfrance wants to merge 1 commit into
pythonarcade:developmentfrom
civilwarinfrance:fix/independent-layer-offsets

Conversation

@civilwarinfrance

Copy link
Copy Markdown

Layers with only offsetx currently raise KeyError: offsety; layers with only offsety silently lose their vertical offset. Both axes default independently to zero in the Tiled formats.

Read each optional axis separately in the shared JSON and TMX layer parsers. This covers tile, object, image and group layers, including nested groups.

References: TMX layer offsets, JSON layer offsets.

Validation: 24 regression cases fail on development (32 controls pass); all 182 tests pass with the fix, with 96% coverage. Mypy passes. The new test file passes Black, isort, Ruff and flake8. Whole-package checks still report existing failures: Ruff findings, Black file list and isort file list match the base; flake8 adds no findings and removes one existing overlong line.

AI-assisted by Codex; the assistant prepared and tested this change.

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.

1 participant