kaplay icon indicating copy to clipboard operation
kaplay copied to clipboard

Add example of defining frames by quad input.

Open nojaf opened this issue 8 months ago • 3 comments

Please describe what issue(s) this PR fixes.

I was a bit confused yesterday about defining frames of a sprite by direct input using Quad. Wanted to add an example for further users.

Summary

  • [ ] Changeloged

Let me know if this needs a changelog.

nojaf avatar Apr 13 '25 09:04 nojaf

i don't think changelog for examples is necessary

amyspark-ng avatar Apr 20 '25 16:04 amyspark-ng

I don't know if it's really how it should work

lajbel avatar Apr 29 '25 00:04 lajbel

Another thing that could have helped me is an ArgumentException in https://github.com/kaplayjs/kaplay/blob/b5f7cfde0af2bb1b648e30c7d91e3217d88db6a1/src/math/math.ts#L100-L105 if any of these values were not between 0 and 1. Not sure if that comes with a performance cost though.

nojaf avatar Apr 29 '25 09:04 nojaf