Rust-First Script Authoring
Scripts are authored directly in Rust and integrated with engine runtime systems through macros.
Perro is built around a simple idea: make Rust scripting practical for real gameplay code while preserving safety, performance, and clear engine integration.
Scripts are authored directly in Rust and integrated with engine runtime systems through macros.
Use with_state!/with_state_mut! and with_node!/with_node_mut! for ergonomic, in-place mutations.
lifecycle! and methods! keep script entry points and callable behavior explicit and organized.
call_method! supports flexible communication patterns, including self-calls and recursion flows.
Typical script compile times in active development are around 0.5 to 2 seconds.
Compose gameplay with node hierarchies, scene workflows, and global signal propagation.