[API] Grid camera default to top-left + center_camera() method #169
Labels
No labels
Alpha Release Requirement
Bugfix
Demo Target
Documentation
Major Feature
Minor Feature
priority:tier1-active
priority:tier2-foundation
priority:tier3-future
priority:tier4-deferred
Refactoring & Cleanup
system:animation
system:documentation
system:grid
system:input
system:performance
system:python-binding
system:rendering
system:ui-hierarchy
Tiny Feature
workflow:blocked
workflow:needs-benchmark
workflow:needs-documentation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
john/McRogueFace#169
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Change Grid's default camera position so tile (0,0) appears at the top-left corner of the widget, and add a
center_camera()convenience method.Current Behavior
Grid camera defaults to (0,0), which places the center of the view at pixel (0,0). Result: 3/4 of the view is black (negative coordinates with no tiles).
Proposed Behavior
1. Default Camera Position
Calculate initial center so that tile (0,0) is at top-left corner of grid widget:
2.
center_camera()MethodImplementation Notes
.centerproperty animation(grid_width/2, grid_height/2)Rationale
center_camera()provides easy "show whole dungeon" behavior🤖 Generated with Claude Code