examples: glyphs: improve code structure / naming / init logic

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2024-04-16 10:40:36 -07:00
parent 8e3f9e21e1
commit b90b70084e
3 changed files with 34 additions and 41 deletions

View file

@ -3,17 +3,14 @@
// Experimental ECS app example. Not yet ready for actual use.
const mach = @import("mach");
const Game = @import("Game.zig");
const Text = @import("Text.zig");
// The list of modules to be used in our application. Our game itself is implemented in our own
// module called Game.
pub const modules = .{
mach.Engine,
mach.gfx.Sprite,
mach.gfx.SpritePipeline,
Text,
Game,
@import("Glyphs.zig"),
@import("Game.zig"),
};
pub const App = mach.App;