+, controllers()
+, timer(64)
+, despawn_range(128 * 128)
+, spawn_distance(16 * 16)
+, max_entities(16)
+, chunk_range(4) {
+ EntityModel::Buffer buf;
+ {
+ CuboidShape shape({{ -0.25f, -0.5f, -0.25f }, { 0.25f, 0.5f, 0.25f }});
+ shape.Vertices(buf, 1.0f);
+ buf.colors.resize(shape.VertexCount(), { 1.0f, 1.0f, 0.0f });
+ models[0].Update(buf);
+ }
+ {
+ CuboidShape shape({{ -0.5f, -0.25f, -0.5f }, { 0.5f, 0.25f, 0.5f }});
+ buf.Clear();
+ shape.Vertices(buf, 2.0f);
+ buf.colors.resize(shape.VertexCount(), { 0.0f, 1.0f, 1.0f });
+ models[1].Update(buf);
+ }
+ {
+ StairShape shape({{ -0.5f, -0.5f, -0.5f }, { 0.5f, 0.5f, 0.5f }}, { 0.4f, 0.4f });
+ buf.Clear();
+ shape.Vertices(buf, 3.0f);
+ buf.colors.resize(shape.VertexCount(), { 1.0f, 0.0f, 1.0f });
+ models[2].Update(buf);
+ }
+
+ timer.Start();
+ Spawn(world.Player().ChunkCoords(), { 0.5f, 0.5f, 0.5f });