The frame half of a tileFrame pack, or the value itself for a plain index.
tileFrame
import { tileFrame, tileFrameIndex } from '@datamoc/mw_games/two-d/render';console.log(tileFrameIndex(tileFrame(2, 5))); // 5console.log(tileFrameIndex(5)); // 5 - a plain frame index passes through unchanged Copy
import { tileFrame, tileFrameIndex } from '@datamoc/mw_games/two-d/render';console.log(tileFrameIndex(tileFrame(2, 5))); // 5console.log(tileFrameIndex(5)); // 5 - a plain frame index passes through unchanged
The frame half of a
tileFramepack, or the value itself for a plain index.