Marc Flerackers
Marc Flerackers
This should be a new getter relativeFrame, because the other one is the absolute frame of the animation and shouldn't be changed.
```ts get relativeFrame() { if (!spriteData || !curAnim || curAnimDir === null) { return this.frame; } const anim = spriteData.anims[curAnim.name]; if (typeof anim === "number") { return anim; } return...
Yes, navigator was my first choice, but I couldn't use it due to that reason. That's why I took navigation. We had the same problem with anchor, which was called...
You could use obj.getCurAnim()?.name, that way you don't need to test for null.
I think playing a video on a texture would be most powerful? Since you can still use shaders and vertex deformation?
Is your video file on the same server as your script?
No, the element is r. What is undefined is e, the opt, you probably use video(url) instead of video(url, { width:320, height: 200 });
No, physics needs to be plugin based, because we need to support multiple physics engines. Box2D (or PlanckJS or MatterJS) are not a good choice for classic platform games because...
allowDialognals means that diagonal movement is allowed. This affects the accessibility of surrounding tiles from the current tile. If allowDialognals is false, only 4 directions are taken into consideration, otherwise...
Couldn't body watch an onParentChanged event? worldPos is more expensive than pos, no?