“There are no external image files or anything, everything is rendered with Javascript using either canvas elements or old fashioned div-making tactics (for IE). The sprites are stored in custom encoded strings in a format that only allows 4 colors for each sprite but in turn only takes up around 40-60 bytes per sprite.
We also have MIDI music embedded as base64-encoded data: URI’s. No music for IE, though, and it seems all the other browsers each have different, minor problems with it, but it sort of works.”
所有资源都在一个js文件里面,未压缩35k,YUI compressor压缩之后14k。
当初FC的马里奥也不过40K。。。。
愆伏
2008/12/10 11:34
相当的彪悍……
ppip
2008/12/18 21:18