2SIMPLE

我们已经回来

JavaScript马里奥

“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。

体验一下?

Written by Datou

十二月 9th, 2008 at 9:03 下午

2 Responses to 'JavaScript马里奥'

Subscribe to comments with RSS or TrackBack to 'JavaScript马里奥'.

  1. 当初FC的马里奥也不过40K。。。。

    愆伏

    2008/12/10 11:34

  2. 相当的彪悍……

    ppip

    2008/12/18 21:18

Leave a Reply