Legacy Engine

From Last Legacy Wiki
Jump to: navigation, search

Features

Renderers

The Legacy Engine ships with multiple renderers for optimized support on varying hardware. In addition to natively supported renderers, the Legacy Engine also supports using the rendering backends: ANGLE and Mesa3D. Mesa3D softpipe has been compiled for both 32bit and 64bit Windows.

UBO

Renderers: native

Required: OpenGL 4.0 (Optional: ARB_bindless_texture, ARB_buffer_storage)

Recommended: OpenGL 4.5 + ARB_bindless_texture

UBO (MESA)

Renderers: native, Mesa3D softpipe

Required: none

ANGLE

Renderers: native or ANGLE

Required: D3D9 with SM2 or OpenGLES 2.0

Recommended: D3D11 with SM4 or OpenGLES 3.0

LL3 Editor

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