Update test demos for new Python API and entity system

- Update all text input demos to use new Entity constructor signature
- Fix pathfinding showcase to work with new entity position handling
- Remove entity_waypoints tracking in favor of simplified movement
- Delete obsolete exhaustive_api_demo.py (superseded by newer demos)
- Adjust entity creation calls to match Entity((x, y), texture, sprite_index) pattern

All demos now properly demonstrate the updated API while maintaining their
original functionality for showcasing engine features.

🤖 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:37:57 -04:00
commit c5e7e8e298
6 changed files with 37 additions and 1241 deletions

View file

@ -79,8 +79,7 @@ class TextInput:
self.label_text = mcrfpy.Caption(
self.x - 5,
self.y - self.font_size - 5,
self.label,
font_size=self.font_size
self.label
)
self.label_text.color = (255, 255, 255, 255)
@ -88,8 +87,7 @@ class TextInput:
self.text_display = mcrfpy.Caption(
self.x + 4,
self.y + 4,
"",
font_size=self.font_size
""
)
self.text_display.color = (0, 0, 0, 255)
@ -260,12 +258,12 @@ def create_demo():
scene.append(bg)
# Title
title = mcrfpy.Caption(10, 10, "Text Input Widget System", font_size=24)
title = mcrfpy.Caption(10, 10, "Text Input Widget System")
title.color = (255, 255, 255, 255)
scene.append(title)
# Instructions
info = mcrfpy.Caption(10, 50, "Click to focus | Tab to switch fields | Type to enter text", font_size=14)
info = mcrfpy.Caption(10, 50, "Click to focus | Tab to switch fields | Type to enter text")
info.color = (200, 200, 200, 255)
scene.append(info)
@ -289,7 +287,7 @@ def create_demo():
comment_input.add_to_scene(scene)
# Status display
status = mcrfpy.Caption(50, 320, "Ready for input...", font_size=14)
status = mcrfpy.Caption(50, 320, "Ready for input...")
status.color = (150, 255, 150, 255)
scene.append(status)