DSC Engine
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
DSC::ObjFrame Class Reference

Public Member Functions

 ObjFrame (const AssetData *asset, int metatile_row, int metatile_col)
 creates new object frame More...
 
 ~ObjFrame ()
 destroys an object frame instance
 

Friends

class ObjAllocator
 
class ObjVisual
 
class Sprite
 

Constructor & Destructor Documentation

◆ ObjFrame()

DSC::ObjFrame::ObjFrame ( const AssetData asset,
int  metatile_row,
int  metatile_col 
)

creates new object frame

Parameters
assetsource tiled asset aka spritesheet (must not be tile reduced)
metatile_rowrow of the frame graphics
metatile_colcolumn 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: