Difference between revisions of "Modules/tile"
From MSX Game Library
< Modules
(Created page with "{{MODULE |name=tile |category=Graphic |image=raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/sample_swtile.png |dependency1=vdp |dependency2= |dependency3= |sam...") |
(No difference)
|
Latest revision as of 23:18, 13 January 2024
The tile module displays a tile-based image for bitmap screen modes.
Usage
To use this module, include "tile.h" in your source code, and add "tile" to the modules list (LibModules) in your project's configuration file (project_config.js).
Samples
See module use cases in the sample programs:
Settings
Library configuration (msxgl_config.h):
#define TILE_WIDTH 8 // Tile width #define TILE_HEIGHT 8 // Tile height #define TILE_BPP 4 // Screen bits-per-pixel #define TILE_SCREEN_WIDTH 256 // Screen width #define TILE_SCREEN_HEIGHT 212 // Screen height #define TILE_USE_SKIP TRUE // Skip drawing of a given index #define TILE_SKIP_INDEX 0 // The index tile to skip
Dependencies
Dependency on other modules:
Documentation