diff options
| author | Mica White <botahamec@outlook.com> | 2026-07-07 22:45:22 -0400 |
|---|---|---|
| committer | Mica White <botahamec@outlook.com> | 2026-07-07 22:45:22 -0400 |
| commit | a9977e7fabeb06a6f21824cc4a41b36ea39f6799 (patch) | |
| tree | 86b586fa8b8a312b2e4d2e5800260fc98430b91b /examples/snake.rs | |
| parent | 07018cb37b278dbd73c864a662454f1cf9d33457 (diff) | |
Full host environment
Diffstat (limited to 'examples/snake.rs')
| -rw-r--r-- | examples/snake.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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(); |
