Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/excaliburjs/Excalibur. 🎮 Your friendly TypeScript 2D game engine for the web 🗡️ excaliburjs.com
excalibur excaliburjs game-development game-engine game-framework gamedev games html5-canvas typescript
Something went wrong. Try again.
fix: Spritesheet Spacing Options, allowing Vectors (#3350) master
### SpriteSheet.ts - modified SpriteSheetSpacingDimensions originOffset and margin to accept optional Vectors - modified fromImageSource to test for instance of Vector and handle it properly, while maintaining backward compatibility ### SpriteSheetSpec.ts - added test: `can be created from with spacing using vectors` ### Updated docs entry on Spritesheets to note that Vectors are now allowed Ran locally and verified functionality using both vec() and new Vector --------- Co-authored-by: Erik Onarheim <erik.onarheim@gmail.com>
Author Justin Young Co-author Erik Onarheim Committer GitHub Date (Feb 3, 2025, 2:48 AM UTC) Commit 3976b329 3976b32951aaf72f6785b3be0324deee97dbc6eb Parent a348365e a348365ef4c504a74b3a6d491f0a7b872c27095a