object.scale.setScalar(1 + Math.cos(t / 400) * 0.2)
          }
        })

      const Swarm = () =>
        T.Group(
          { tick: (dt, { object }) => (object.rotation.y = object.rotation.z += 0.4 * dt) },
          make(10, (z) =>
            make(10, (y) =>
              make(10, (x) =>
                h(Cube, {
                  position: [(x - 5) * 2 + 1, (y - 5) * 2 + 1, (z - 5) * 2 + 1]
                })
              )
            )
          )
        )

      const Resources = () => [
      