ponko 0.0.1

A fast 2D game engine for simulating millions of things: ECS on all cores, hot reload, an in-game inspector, AI-agent control, and a C++ API.
Documentation
1
2
3
4
5
6
7
8
9
fn static_instance(v: VertexIn) -> VertexIn {
    if v.m0.w != -2.0 { return v; }
    let count = u32(items[0].x);
    let index = u32(items[1u+count*6u+v.instance_index].x);
    let base = 1u+index*6u;
    var out = v;
    out.m0 = items[base]; out.m1=items[base+1u]; out.m2=items[base+2u]; out.m3=items[base+3u]; out.color=items[base+4u];
    return out;
}