Update animation demo suite with crash fixes and improvements

- Add warnings about AnimationManager segfault bug in sizzle_reel_final.py
- Create sizzle_reel_final_fixed.py that works around the crash by hiding objects instead of removing them
- Increase font sizes for better visibility in demos
- Extend demo durations for better showcase of animations
- Remove debug prints from animation_sizzle_reel_working.py
- Minor cleanup and improvements to all animation demos

These demos showcase the full animation system capabilities while documenting and working around known issues with object removal during active animations.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
John McCardle 2025-07-14 01:36:46 -04:00
commit 6d29652ae7
5 changed files with 216 additions and 11 deletions

View file

@ -258,8 +258,9 @@ def demo_grid_animations(ui):
except:
texture = None
grid = Grid(100, 150, grid_size=(20, 15), texture=texture,
tile_width=24, tile_height=24)
# Grid constructor: Grid(grid_x, grid_y, texture, position, size)
# Note: tile dimensions are determined by texture's grid_size
grid = Grid(20, 15, texture, (100, 150), (480, 360)) # 20x24, 15x24
grid.fill_color = Color(20, 20, 40)
ui.append(grid)
@ -282,7 +283,7 @@ def demo_grid_animations(ui):
# Create entities in the grid
if texture:
entity1 = Entity(5.0, 5.0, texture, sprite_index=8)
entity1 = Entity((5.0, 5.0), texture, 8) # position tuple, texture, sprite_index
entity1.scale = 1.5
grid.entities.append(entity1)
@ -291,7 +292,7 @@ def demo_grid_animations(ui):
entity_pos.start(entity1)
# Create patrolling entity
entity2 = Entity(10.0, 2.0, texture, sprite_index=12)
entity2 = Entity((10.0, 2.0), texture, 12) # position tuple, texture, sprite_index
grid.entities.append(entity2)
# Animate sprite changes