hadean-zig/src/scenes.zig

14 lines
299 B
Zig
Raw Normal View History

2024-08-23 17:22:01 -04:00
const Scene = @import("Scene.zig");
const Terrain = @import("Terrain.zig");
pub fn game() !Scene {
var scene = Scene.create();
// first try is for allocating more memory in entities
// second try is for allocating terrain on the heap...
try scene.add(try Terrain.create());
return scene;
}