BREAKING CHANGES: - Relationship syntax now requires blocks for all participants - Removed self/other perspective blocks from relationships - Replaced 'guard' keyword with 'if' for behavior tree decorators Language Features: - Add tree-sitter grammar with improved if/condition disambiguation - Add comprehensive tutorial and reference documentation - Add SBIR v0.2.0 binary format specification - Add resource linking system for behaviors and schedules - Add year-long schedule patterns (day, season, recurrence) - Add behavior tree enhancements (named nodes, decorators) Documentation: - Complete tutorial series (9 chapters) with baker family examples - Complete reference documentation for all language features - SBIR v0.2.0 specification with binary format details - Added locations and institutions documentation Examples: - Convert all examples to baker family scenario - Add comprehensive working examples Tooling: - Zed extension with LSP integration - Tree-sitter grammar for syntax highlighting - Build scripts and development tools Version Updates: - Main package: 0.1.0 → 0.2.0 - Tree-sitter grammar: 0.1.0 → 0.2.0 - Zed extension: 0.1.0 → 0.2.0 - Storybook editor: 0.1.0 → 0.2.0
116 lines
3.3 KiB
Plaintext
116 lines
3.3 KiB
Plaintext
//! Alice: The protagonist navigating Wonderland's absurdities
|
|
//! v0.2.0: Now includes behavior references for her exploration patterns
|
|
|
|
use schema::core_enums::{Size, EmotionalState};
|
|
use schema::templates::SizeChanging;
|
|
use schema::beings::Human;
|
|
|
|
character Alice: Human from SizeChanging {
|
|
uses behaviors: [
|
|
{ tree: ExploreWonderland },
|
|
{ tree: TryToGetHome }
|
|
]
|
|
// Core identity
|
|
age: 7
|
|
natural_size: normal
|
|
current_size: normal
|
|
min_size: tiny
|
|
max_size: huge
|
|
size_changes_today: 12
|
|
|
|
// Personality traits
|
|
emotional_state: curious
|
|
follows_logic: true
|
|
awareness_of_absurdity: 0.9
|
|
|
|
// Wonderland-specific state
|
|
knows_multiplication: false // Gets confused underground
|
|
can_recite_poetry_correctly: false // Always gets verses wrong
|
|
|
|
---backstory
|
|
A curious young girl who followed a White Rabbit down a hole and
|
|
found herself in a world where logic fails, size is mutable, and
|
|
everyone speaks in riddles and contradictions.
|
|
|
|
She tries to maintain her composure and Victorian manners even as
|
|
she shrinks to inches, grows to fill rooms, and encounters
|
|
impossible characters hosting impossible tea parties.
|
|
---
|
|
}
|
|
|
|
// Alice's transformative journey through Wonderland
|
|
life_arc AliceJourney {
|
|
---description
|
|
Tracks Alice's physical and emotional transformations as she
|
|
navigates Wonderland's surreal challenges. Each state represents
|
|
a key phase of her adventure.
|
|
---
|
|
|
|
state falling {
|
|
on enter {
|
|
Alice.current_size: normal
|
|
Alice.emotional_state: curious
|
|
}
|
|
|
|
---narrative
|
|
Tumbling down the rabbit hole, Alice has time to wonder about
|
|
geography, Dinah the cat, and whether she'll fall through to
|
|
the Antipodes. The fall seems endless.
|
|
---
|
|
}
|
|
|
|
state tiny_alice {
|
|
on enter {
|
|
Alice.current_size: tiny
|
|
Alice.emotional_state: frightened
|
|
Alice.size_changes_today: 13
|
|
}
|
|
|
|
---narrative
|
|
Only three inches tall, Alice can fit through the tiny door to
|
|
the garden but cannot reach the key on the glass table. She
|
|
finds herself crying a pool of tears.
|
|
---
|
|
}
|
|
|
|
state giant_alice {
|
|
on enter {
|
|
Alice.current_size: huge
|
|
Alice.emotional_state: confused
|
|
Alice.size_changes_today: 13
|
|
}
|
|
|
|
---narrative
|
|
Grown so large her head hits the ceiling, Alice floods the hall
|
|
with her tears. The White Rabbit mistakes her giant arm for a
|
|
monster and attempts to burn the house down.
|
|
---
|
|
}
|
|
|
|
state normal_alice_garden {
|
|
on enter {
|
|
Alice.current_size: normal
|
|
Alice.emotional_state: brave
|
|
}
|
|
|
|
---narrative
|
|
Finally the right size, Alice enters the beautiful garden and
|
|
encounters the Queen's croquet ground, where flamingos serve
|
|
as mallets and hedgehogs as balls.
|
|
---
|
|
}
|
|
|
|
state enlightened_alice {
|
|
on enter {
|
|
Alice.emotional_state: brave
|
|
Alice.awareness_of_absurdity: 1.0
|
|
}
|
|
|
|
---narrative
|
|
Having traversed the madness of Wonderland, Alice realizes
|
|
"you're nothing but a pack of cards!" Her awareness of the
|
|
absurdity grants her power over the dream.
|
|
---
|
|
}
|
|
}
|