McRogueFace/docs/tutorials
John McCardle 1805b985bd Update all 13 tutorial scripts to current enum-based API, refs #167
All tutorial parts (1-13) used the old string-based key/action
comparison API removed in 6d5e99a. Every handle_keys function now
uses mcrfpy.Key.* and mcrfpy.InputState.PRESSED enums.

Additional fixes across all parts:
- Replace manual FOV computation with ColorLayer.draw_fov() which
  handles FOV calculation and explored-state tracking in one call
- Replace old grid.add_layer("color") with ColorLayer() constructor
- Fix entity removal bug: entities.remove(index) -> remove(entity_ref)
- Remove manual exploration tracking (draw_fov handles it internally)
- Use tuple positions for compute_fov/is_in_fov: (x, y) not x, y

All 14 parts (0-13) tested and passing in headless mode.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-09 23:23:35 -04:00
..
part_00_setup Add 14-part tutorial Python files (extracted, tested) 2025-12-31 16:21:09 -05:00
part_01_grid_movement Update all 13 tutorial scripts to current enum-based API, refs #167 2026-04-09 23:23:35 -04:00
part_02_tiles_collision Update all 13 tutorial scripts to current enum-based API, refs #167 2026-04-09 23:23:35 -04:00
part_03_dungeon_generation Update all 13 tutorial scripts to current enum-based API, refs #167 2026-04-09 23:23:35 -04:00
part_04_fov Update all 13 tutorial scripts to current enum-based API, refs #167 2026-04-09 23:23:35 -04:00
part_05_enemies Update all 13 tutorial scripts to current enum-based API, refs #167 2026-04-09 23:23:35 -04:00
part_06_combat Update all 13 tutorial scripts to current enum-based API, refs #167 2026-04-09 23:23:35 -04:00
part_07_ui Update all 13 tutorial scripts to current enum-based API, refs #167 2026-04-09 23:23:35 -04:00
part_08_items Update all 13 tutorial scripts to current enum-based API, refs #167 2026-04-09 23:23:35 -04:00
part_09_ranged Update all 13 tutorial scripts to current enum-based API, refs #167 2026-04-09 23:23:35 -04:00
part_10_save_load Update all 13 tutorial scripts to current enum-based API, refs #167 2026-04-09 23:23:35 -04:00
part_11_levels Update all 13 tutorial scripts to current enum-based API, refs #167 2026-04-09 23:23:35 -04:00
part_12_experience Update all 13 tutorial scripts to current enum-based API, refs #167 2026-04-09 23:23:35 -04:00
part_13_equipment Update all 13 tutorial scripts to current enum-based API, refs #167 2026-04-09 23:23:35 -04:00