makeRect
makeRect(
opt
):GameObj
<BaseComps
&RenderComps
&RectComp
>
Make an object with a rectangle component. Maker extends makeRender
Parameters
Parameter | Type |
---|---|
opt | ObjOpt & RenderOpt & RectOpt |
Returns
GameObj
<BaseComps
& RenderComps
& RectComp
>
Example
Source
global.d.ts:6