Skip to content
Gankro edited this page May 26, 2012 · 4 revisions

An asset is some resource that a walkabout can use. The following types of assets exist:

Table of Contents

Graphic

A graphic asset is any image. It may be a stand-alone image or a sprite sheet. Since HTML5 does not currently support sharpness preserving scaling algorithms, any graphic must be at the scale it will be rendered at.

Audio

An audio asset is any sound. It may be a sound effect or background music. Since HTML5 standards and the Audio tag are still in their infancy, for compatibility all audio assets should come in both mp3 and ogg formats. Firefox and Opera do not support mp3, and IE and Safari do not support ogg. This is not likely to be resolved soon for political reasons.

Movie

A movie asset is a SWF movie, to be used as a cutscene. Currently any swf movie should include the command:

 getURL("javascript: movieDone()");

when it is completed, so that the javascript engine knows.

Path

A path asset is a series of points, representing a polygon. This is used to determine special regions in a room, such as walkable and unwalkable areas.

Clone this wiki locally