Gamedev:Glossary

From Spring
Revision as of 19:09, 27 October 2013 by Flozi (talk | contribs) (Consolidate definition stubs into one page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Game Dev Glossary

This page contains definitions of technical terms and acronyms associated with Spring game development.

AtlasedTexture

An alias to a texture. This means the alias must be defined somewhere and pointing to to a real texture. For AtlasedTextures used in projectiles (like those spawned by explosiongenerator) they need to be defined in resources.lua under the [projectiletextures].

A line defining a texture alias in resources.lua looks like this:

alias = "real_image.tga",

Most spring supported image format can be used in AtlasedTextures, but not compressed dds.}}

CColorMap

A collection of 2 or more RGBA colours. They can be expressed either as a string of decimal numbers, or pointing to an image file where each pixel will be used as a colour.

Example:

This gives a ColorMap with 2 colours, the first one blue and second one white:
colorMap = "1.0 0.0 0.0 0.0 1.0 1.0 1.0 0.0",

Or it can be pointed to a bitmap file:
colorMap = "bitmap_file.tga",

ColorMaps usually describe how the colours of an entity will shift during its lifetime, where the first colour will be used at the beginning and then cycle through all colours until the last one is used at the end of its lifetime.}}