Marc Flerackers
Marc Flerackers
No, the original get(string | [string]) will only work with tags. The new get(GetOpt) will work with new features like names.
This is not about renaming loop, it is about refactoring it to not use wait. Instead it should use an update event directly.
@niceEli something like this ``` loop(this: GameObj, time: number, action: () => void, count: number = -1): EventController { let t:number = 0 const ev = this.onUpdate(() => { t...
BTW, does anyone really use the then or onEnd stuff of wait? It only adds complexity I think. It makes more sense to add an onEnd to loop, since you...
Replace you mean? You can.
``` // PosComp methods // Gives the object's position relative to the root worldPos(this: GameObj): Vec2 { return this.toWorld(vec2()) } // Transforms a point relative to this object to a...
Best to make it a component, so it works for any object with pos, not just sprites. Camera will become an object in 4000.
I don't think using Kaplay is master though. You need to use the git npm.
npm i github:kaplayjs/kaplay
That is already planned, as I need it for live queries, as well as some other things.