Skip to content

makeArea

makeArea(opt): GameObj<BaseComps & AreaComp>

Make an object with a collider component. Maker extends makeObject

Parameters

ParameterType
optObjOpt & AreaOpt

Returns

GameObj<BaseComps & AreaComp>

Example

const clickableArea = k.add(makeArea({
size: k.vec2(100, 100),
}));

Source

global.d.ts:4