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:
parent
8089d3356e
commit
15fd2c3a64
8 changed files with 67 additions and 25 deletions
|
|
@ -58,6 +58,8 @@ fn init(game: *Mod, core: *mach.Core.Mod) !void {
|
|||
.pipeline = pipeline,
|
||||
});
|
||||
try updateWindowTitle(core);
|
||||
|
||||
core.send(.start, .{});
|
||||
}
|
||||
|
||||
// TODO(important): remove need for returning an error here
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue