Multi-tile entities using oversized sprites #236
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:procgen
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.
Blocks
#233 Enhance Entity rendering and positioning capabilities
john/McRogueFace
Reference
john/McRogueFace#236
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
Support entities that visually span multiple grid cells using a single sprite larger than the cell size (e.g., a 2×2 boss enemy, 3×4 dragon).
Parent issue: #233
Use Case
A boss enemy occupies a 2×2 area. The entity has a single 32×32 sprite (on a 16×16 grid) and should:
Current Behavior
Entities are treated as single points:
Proposed Changes
Add to UIEntity:
Modify FOV check (src/UIEntity.cpp):
Modify Spatial Hash:
Modify Frustum Culling:
Python API:
Performance Impact
Files Affected
src/UIEntity.h/cpp- Add tile_width/height, modify FOVsrc/UIGrid.cpp- Modify frustum cullingsrc/SpatialHash.h/cpp- Handle multi-tile insertion