CRM64Pro GDK v0.14.0
A free cross-platform game development kit built on top of SDL 3.0
Loading...
Searching...
No Matches
TileEngine modules

Description

Logic module containing the TileEngine subsystems: the core engine and extensions.

Topics

 TileEngine MapData extension
 Data definition classes for TileEngine layer management v3.00 (May 2024).
 TileEngine Core
 TileEngine Manager and TileEngine objects for 2D tile-based game development [v26.01.0].

Macros

#define TE_LAYERFEATURE_DISABLE   0
#define TE_LAYERFEATURE_REPEATX   1
#define TE_LAYERFEATURE_REPEATY   2
#define TE_LAYERFEATURE_AUTOSCROLL   4
#define TE_LAYERFEATURE_UPDATE   8
#define TE_LAYERFEATURE_RENDER   32
#define TE_LAYERFEATURE_SMOOTHSCROLL   64
#define TE_LAYERFEATURE_SHOWGRID   128
#define TE_LAYERFEATURE_PAUSE   256
#define TE_KEEP_VALUE   0x00FFFFFE
#define TE_LAYERPOSITION_BEGIN   0x00FFFFFD
#define TE_LAYERPOSITION_MIDDLE   0x00FFFFFC
#define TE_LAYERPOSITION_END   0x00FFFFFB
#define TE_LAYERPOSITION_CENTER   0x0A000000
#define TE_REGISTEREDMAPDATA_MAX   3
#define TE_LAYER_EMPTY   "TE-LAYER-EMPTY"

Enumerations

enum  CRM64Pro::eTileEngineTileSetType { CRM64Pro::TETT_NULL = -1 , CRM64Pro::TETT_TILESET = 0 , CRM64Pro::TETT_COLLECTION = 1 }
 Specifies how the TileSet is organized. More...
enum  CRM64Pro::eTileSetStorageMode { CRM64Pro::TSSM_DISK , CRM64Pro::TSSM_CDC , CRM64Pro::TSSM_INTERNAL }
 Specifies where the tileset data is physically stored. More...

Macro Definition Documentation

◆ TE_LAYERFEATURE_DISABLE

#define TE_LAYERFEATURE_DISABLE   0

Disable layer and remove all features. Default value.

◆ TE_LAYERFEATURE_REPEATX

#define TE_LAYERFEATURE_REPEATX   1

Enable the layer image to be repeated along the X-axis.

◆ TE_LAYERFEATURE_REPEATY

#define TE_LAYERFEATURE_REPEATY   2

Enable the layer image to be repeated along the Y-axis.

◆ TE_LAYERFEATURE_AUTOSCROLL

#define TE_LAYERFEATURE_AUTOSCROLL   4

Enable autoscroll feature. Check setLayerAutoScroll() for further details.

◆ TE_LAYERFEATURE_UPDATE

#define TE_LAYERFEATURE_UPDATE   8

Enable the updating feature. Check update() for further details.

◆ TE_LAYERFEATURE_RENDER

#define TE_LAYERFEATURE_RENDER   32

Enable the rendering feature. Check render() for further details.

◆ TE_LAYERFEATURE_SMOOTHSCROLL

#define TE_LAYERFEATURE_SMOOTHSCROLL   64

Enable the smooth rendering feature. Check render() for further details.

◆ TE_LAYERFEATURE_SHOWGRID

#define TE_LAYERFEATURE_SHOWGRID   128

Show the base mapdata grid (for debugging purposes). Check setLayerGridColor() for further details.

◆ TE_LAYERFEATURE_PAUSE

#define TE_LAYERFEATURE_PAUSE   256

Pause the layer (current positions can not be modified). Note that update() and render() methods should be called to keep the internal state.

◆ TE_KEEP_VALUE

#define TE_KEEP_VALUE   0x00FFFFFE

Used with properties members to avoid changing the current value.

◆ TE_LAYERPOSITION_BEGIN

#define TE_LAYERPOSITION_BEGIN   0x00FFFFFD

Set the layer position at the beginning.

◆ TE_LAYERPOSITION_MIDDLE

#define TE_LAYERPOSITION_MIDDLE   0x00FFFFFC

Set the layer position at the middle.

◆ TE_LAYERPOSITION_END

#define TE_LAYERPOSITION_END   0x00FFFFFB

Set the layer position at the end.

◆ TE_LAYERPOSITION_CENTER

#define TE_LAYERPOSITION_CENTER   0x0A000000

Try to set the layer position at the center.

◆ TE_REGISTEREDMAPDATA_MAX

#define TE_REGISTEREDMAPDATA_MAX   3

Maximum registered mapdata types. [0] is always TE_MapData.

◆ TE_LAYER_EMPTY

#define TE_LAYER_EMPTY   "TE-LAYER-EMPTY"

Default name for a layer which is allocated but empty.

Enumeration Type Documentation

◆ eTileEngineTileSetType

Specifies how the TileSet is organized.

Enumerator
TETT_NULL 

Default value when no TileSet is loaded.

TETT_TILESET 

A standard TileSet based on a Tile (tileset mode).

TETT_COLLECTION 

A collection of tiles where each tile is a Tile (no tileset mode).

◆ eTileSetStorageMode

Specifies where the tileset data is physically stored.

Enumerator
TSSM_DISK 

Standard file on the physical disk.

TSSM_CDC 

Inside a CRM64Pro::ArchiveCDC file.

TSSM_INTERNAL 

Created from an in-memory CRM64Pro object (Tile or Image).