Modules/tile

From MSX Game Library

< Modules

tile

Code: tile.h

Category: Graphic

Dependencies:

Samples:

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