makeObject(opt): GameObj<BaseComps>
opt
GameObj
BaseComps
Make an object with the base components.
ObjOpt
GameObj<BaseComps>
// Good for parent objects!const myParent = k.add(makeObject({ pos: k.vec2(100, 100),}); myParent.add(k.makeSprite({ sprite: "bean",}));
global.d.ts:3