Steven Lambert

Results 173 comments of Steven Lambert

I just added direction and length to Vector for v7.

Yep! https://github.com/straker/kontra/blob/v7/kontra.d.ts

- [x] Would also like to be able to dynamically update the children of the grid. Something like ```js grid = Grid({ children: [childA, childB, childC] }); // ... grid.children...

Ya, it's unexpected behavior to forward an invalid value to `globalAlpha` which rejects invalid values outside of the 0-1 range. Going to clamp the value. https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalAlpha#value

Interesting idea. Is there a particular use-case or reason a singleton would be more helpful over individual functions? One of the main reasons they are separate functions is to enable...

That's a good point. The docs have a service worker that fetches the latest content and will update for you after you navigate to it and refresh/close the page. But...

Also investigate pointer events with objects in a TileEngine that uses camera.

Confirmed that this is a problem. Seems removing all the GameObject camera code also made it so pointer events can't work on Scene and TileEngine (since they are now controlling...

I'm unfamiliar with LDTK, but an abstraction to load different level editor JSON files seems interesting. The main issue is that the TileEngine was built around Tiled data structure. If...

I haven't work on this yet. If you'd like to help I think what we need is an abstract TileEngine class that can bridge the different level editor data, then...