• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

excaliburjs / Excalibur / 7619811187
89%

Build:
DEFAULT BRANCH: main
Ran 23 Jan 2024 01:43AM UTC
Jobs 1
Files 202
Run time 15s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

23 Jan 2024 01:39AM UTC coverage: 91.314% (+0.04%) from 91.273%
7619811187

push

github

web-flow
feat: Implement SpriteSheet getSprite options (#2901)

This PR implements new `ex.SpriteSheet.getSprite(..., options)`

You can now influence sprites directly out of the sprite sheet

  ```typescript
  const sprite = ss.getSprite(0, 0, {
    flipHorizontal: true,
    flipVertical: true,
    width: 200,
    height: 201,
    opacity: .5,
    scale: ex.vec(2, 2),
    origin: ex.vec(0, 1),
    tint: ex.Color.Red,
    rotation: 4
  });
  ```

Also the animation helper  `ex.Animation.fromSpriteSheetCoordinates()` you can now pass any valid `ex.GraphicOptions` to influence the sprite per frame
  ```typescript
  const anim = ex.Animation.fromSpriteSheetCoordinates({
    spriteSheet: ss,
    frameCoordinates: [
      {x: 0, y: 0, duration: 100, options: { flipHorizontal: true }},
      {x: 1, y: 0, duration: 100, options: { flipVertical: true }},
      {x: 2, y: 0, duration: 100},
      {x: 3, y: 0, duration: 100}
    ],
    strategy: ex.AnimationStrategy.Freeze
  });
  ```

5015 of 6304 branches covered (0.0%)

11175 of 12238 relevant lines covered (91.31%)

26926.27 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7619811187.1 23 Jan 2024 01:43AM UTC 0
91.31
GitHub Action Run
Source Files on build 7619811187
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #7619811187
  • 73d94d8d on github
  • Prev Build on main (#7619756975)
  • Next Build on main (#7619811206)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc