Core: use an explicit .start event sent by app to begin .tick events

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2024-04-29 18:25:57 -07:00 committed by Stephen Gutekanst
parent 8089d3356e
commit 15fd2c3a64
8 changed files with 67 additions and 25 deletions

View file

@ -74,6 +74,8 @@ fn init(
.spawn_timer = try mach.Timer.start(),
.player = player,
});
core.send(.start, .{});
}
// TODO(important): remove need for returning an error here