From a9977e7fabeb06a6f21824cc4a41b36ea39f6799 Mon Sep 17 00:00:00 2001 From: Mica White Date: Tue, 7 Jul 2026 22:45:22 -0400 Subject: Full host environment --- examples/snake.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'examples') diff --git a/examples/snake.rs b/examples/snake.rs index d62e3ba..d14618e 100644 --- a/examples/snake.rs +++ b/examples/snake.rs @@ -118,11 +118,13 @@ fn main() { }]), scripts: Box::from([ ScriptDeclaration::Static { + name: Box::from("exit_on_escape"), start: None, update: Some(exit_on_escape), end: None, }, ScriptDeclaration::Static { + name: Box::from("game_state"), start: Some(init_scene), update: Some(render), end: None, @@ -143,6 +145,7 @@ fn main() { buffer: &mut buffer, input: &input, time: &time, + operation_queue: Vec::new(), }; switch_scenes( &mut scripts, @@ -165,6 +168,7 @@ fn main() { buffer, input: &input, time: &time, + operation_queue: Vec::new(), }; scripts.run_scripts(&mut context, &wasm_runner, &mut files); input.reset_next_frame(); -- cgit v1.2.3