INNER CODE UNIT · C++
t
evanbowman/BPCore-Engine · source/BPCoreEngine.cpp:933
auto t = platform->get_tile(static_cast<Layer>(l), x, y);
if (t <= 82) {
// The engine does not allow users to capture the tile
// index of a glyph.
t = 0;
} else {
t -= 83;
}
lua_pushinteger(L, t);
return 1;
}
case Layer::map_1:
case Layer::map_0:
case Layer::background:
lua_pushinteger(
L, platform->get_tile(static_cast<Layer>(l), x, y));
return 1;