|
| ObjFrame (const AssetData *asset, int metatile_row, int metatile_col) |
| creates new object frame More...
|
|
| ~ObjFrame () |
| destroys an object frame instance
|
|
|
class | ObjAllocator |
|
class | ObjVisual |
|
class | Sprite |
|
◆ ObjFrame()
DSC::ObjFrame::ObjFrame |
( |
const AssetData * |
asset, |
|
|
int |
metatile_row, |
|
|
int |
metatile_col |
|
) |
| |
creates new object frame
- Parameters
-
asset | source tiled asset aka spritesheet (must not be tile reduced) |
metatile_row | row of the frame graphics |
metatile_col | column of the frame graphics |
A frame's graphics size is dictated by the asset's metatile size. For a 256x256px asset image with 32x32px metatiles, the frame situated at row 1, column 2 will have be have the top-left coordinates at x=64, y=32 vizualized in the original asset.
The documentation for this class was generated from the following file: