6 ms·
`l` is the binary data for the levels, `m` is for the models. These are loaded in the map.js[1] and models.js[2]. JS13k, the contest this game was made for, ha
by phoboslab 5y ago
`l` is the binary data for the levels, `m` is for the models. These are loaded in the map.js[1] and models.js[2].
JS13k, the contest this game was made for, has the 13kb size limit for a ZIP containing all necessary files. The build process[3] produces a q1k3.zip[4] that sits at 13309 bytes.
Granted, the JS and assets without ZIP compression are a bit bigger, but when sent out over http with fast gzip compression there's still only around 15kb going through the wire.
[1] https://github.com/phoboslab/q1k3/blob/master/source/map.js https://github.com/phoboslab/q1k3/blob/master/source/map.js
[2] https://github.com/phoboslab/q1k3/blob/master/source/model.js https://github.com/phoboslab/q1k3/blob/master/source/model.j...
[3] https://github.com/phoboslab/q1k3/blob/master/build.sh https://github.com/phoboslab/q1k3/blob/master/build.sh
[4] https://phoboslab.org/q1k3/q1k3.zip https://phoboslab.org/q1k3/q1k3.zip