14 lines
299 B
Zig
14 lines
299 B
Zig
|
|
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;
|
||
|
|
}
|