Steven Lambert

Results 105 issues of Steven Lambert

It would be nice if `randInt` could take a seeded random generator to produce the random int. Maybe `randInt(min, max, seed = Math.random)`?

feature

Someone recently asked what the best way was to use a Sprite to display a [spritesheet that only contained individual sprites](https://github.com/straker/js13k-2021/blob/main/src/assets/tilesheet.png). I did something similar for my 2021 entry and...

feature

When on a page that has a scroll, and currently scrolled down, using `kontra.Scene` and calling `scene.show()` will cause the page to scroll to the top. This is because I...

bug

Currently there's no way to generate a random number between a range but influence the [random number to bias towards 0 or 1](https://gamedev.stackexchange.com/questions/116832/random-number-in-a-range-biased-toward-the-low-end-of-the-range/116875#116875). For that I'd have to be able...

feature

Right now there's no easy way to randomly seed the random number generator. Would be best to allow using `Date().now()` to generate the random seed to seed the generator.

feature

The `tick` event emitted in the GameLoop happens before the update step but outside the accumulator loop. This means that any code listening to the `tick` event will only fire...

bug

Support `padding` on `SpriteSheet` (and probably `TileEngine`) in order to support images that have padding around the edges of the sprite. For example https://opengameart.org/content/classic-hero

feature

The `seedRand` function has an internal state `seed` that is updated every time the `rand()` function is called. It'd be really nice to be able to get the current state...

feature

When extending the `SpriteClass` and overriding the `draw` method, there's no way to prevent the `children` from rendering. For example if I want to not render the sprite I would...

feature

When a component that creates an accessible DOM node (e.g. `Button`) is instantiated, should allow an option to set the container the DOM node is added to rather than always...

feature