Legacy Engine

From Last Legacy Wiki
Revision as of 04:17, 27 July 2016 by Lulzaraptor (Talk | contribs) (Created page with "= Features = = Sound Support = Legacy Engine uses FFMPEG for decoding sounds. As a result, several different encodings are supported. It is recommended however to use ogg/fla...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Features

Sound Support

Legacy Engine uses FFMPEG for decoding sounds. As a result, several different encodings are supported. It is recommended however to use ogg/flac or ogg/vorbis.

Plugins

Legacy Engine utilizes primarily groovy for plugin extension. Any scripts placed within the folder "plugins" are loaded on launch.

Actors

Actors are anything that can be controlled (AI or player)

Backgrounds

Fonts

All font files used by the engine are stored here. Accepted file type is ttf.

Items

Anything that can be placed that is neither a Tile nor an Item.

Particles

Paths

Scripts

Scripts are special plugins that are run once on launch. These are often used as "meta plugins"; ie: plugins that load other plugins.

Sounds

All sounds used by the engine are stored here. This plugin type is further subdivided by type of sound. Only the subtype "sounds/ost" is loaded by default. Sound plugins may be defined by an optional JSON descriptor file.

Example JSON:

 {
   "name": "ost/Boss",
   "resource": "06_boss.ogg",
   "loopOffset": "15.150",
   "cache": "false"
 }

"name" is the tag assigned to the sound. Scripts reference sounds with this. "resource" points to the location of the actual sound file (relative to the descriptor file) "loopOffset" is the number of seconds to jump to after the sound loops. "cache" indicates if the sound should be cached in memory. This is only recommended for short sounds since most sounds will expand up to 30x on decompress.

Ambient

Collect

Menu

OST

These are the song files that appear in editor and game.

Switch

Vocal

These are sounds that can be played when characters are talking.

Tiles

Tiles holds two different types of Plugins: TileSet and Tile.

Title