Difference between revisions of "Assets.txt"
From KK's Wiki
m |
m |
||
Line 37: | Line 37: | ||
A palette is defined by specifying color values and dithering options. | A palette is defined by specifying color values and dithering options. | ||
+ | Use the following syntax. | ||
− | ; | + | ; $xxx (color definition) |
+ | A dollar sign ''$'' within palette definition adds one color to the palette. | ||
+ | 3 hex digits specify the value of red, green and blue components, 4 bits per component (Amiga OCS precision). | ||
+ | |||
+ | $000 // black | ||
+ | $222 // gray ramp | ||
+ | $333 // | | ||
+ | $555 // | | ||
+ | $777 // | | ||
+ | $BBB // | | ||
+ | $FFF // white | ||
+ | $343 // green ramp | ||
+ | $573 // | | ||
+ | $774 // | | ||
+ | $004 // blue | ||
+ | $320 // brown | ||
+ | $431 // brown | ||
+ | $CA5 // yellow | ||
+ | $C00 // red | ||
+ | $600 // | |
Revision as of 11:41, 17 June 2020
This page is still under construction - much of the infrmation is still to be filled
File Structure
The assets.txt file controls what assets are imported, and how the import process is performed.
The file is a list of definition entries. Using one of the following keywords:
- palette
- gfxgroup
Example assets.txt file could have the following structure:
palette Main { ... define palette 'Main' here ... } palette HUD { ... define palette 'HUD' here ... } ... define other palettes if needed ... gfxgroup Textures { ... specify group contents ... } ... define other groups and/or palettes ...
Comments
The file accepts both C-style single line comments, and shell-style comments.
// This is a comment. # This is a comment too.
Palette definition
A palette is defined by specifying color values and dithering options. Use the following syntax.
- $xxx (color definition)
A dollar sign $ within palette definition adds one color to the palette. 3 hex digits specify the value of red, green and blue components, 4 bits per component (Amiga OCS precision).
$000 // black $222 // gray ramp $333 // | $555 // | $777 // | $BBB // | $FFF // white $343 // green ramp $573 // | $774 // | $004 // blue $320 // brown $431 // brown $CA5 // yellow $C00 // red $600 // |