![]() |
CRM64Pro GDK v0.14.0
A free cross-platform game development kit built on top of SDL 3.0
|
TileEngine Manager and TileEngine objects for 2D tile-based game development [v26.01.0].
|
The TileEngine Core module is a 2D graphics engine that enables you to create tile-based games in a very easy and powerful way. With full support for Tiled map editor (TMX format), you can design your levels using industry-standard tools. Developed from scratch but based on the old MSTE for CRM32Pro, it provides comprehensive support for levels, layers, tilesets and multiple file formats.
The level is the top-level entity created by one or more layers:
| View type | Orthogonal view |
|---|---|
| Layer count | Any number of layers, modifiable at runtime |
| Viewport | Viewport and render screen modifiable at runtime |
| Layer grouping | Independent or grouped layers supporting standard or parallax scroll |
| Auto-scroll | Built-in auto-scrolling capabilities |
Layers contain the tile-based data and rendering properties:
| Dimensions | Any width and height (number of cells) |
|---|---|
| Cell size | Any cell size supported |
| Tilesets | Any number of tilesets per layer; larger tiles extend at top and right |
| Alpha modulation | 0 (fully transparent) to 255 (fully opaque) |
| Events | onUpdateEnd and onRenderEnd events for custom logic |
| Smooth scroll | Optional smooth scroll rendering for fluid movement |
| Custom maps | Add custom map data via C++ class inheritance |
| Debug mode | Render cell grid for debugging purposes |
| Type | CRM64Pro::Tile objects |
|---|---|
| Storage | External files or CDC archives |
| TMX | Full support for Tiled 0.18+ map files (see TMX compatibility below) |
|---|---|
| BMP/PNG | Import image into layer or export layer to external image |
Support for Tiled map files with the following specifications:
| TMX version | v1.0 to v1.10 |
|---|---|
| Orientation | Orthogonal only |
| Render order | right-down only (if set) |
| Layer ID | Starts with 1 |
| Ignored properties | infinite, backgroundcolor |
| C64TE map | Embedded inside TMX (current version 3.0) |
This is a standard manager: objects are not shared and must be unique using its name as the key. You cannot create an object with the same name as another one already created.
Classes | |
| class | CRM64Pro::TileEngine |
| TileEngine Object class. More... | |
| class | CRM64Pro::TileEngineMgr |
| TileEngine Manager class. More... | |