-
Notifications
You must be signed in to change notification settings - Fork 29
Asset
An asset is some resource that a walkabout can use. The following types of assets exist:
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.
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.
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.
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.