Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Tiling Sprites and Animations #3309

Merged
merged 5 commits into from
Dec 4, 2024
Merged

feat: Tiling Sprites and Animations #3309

merged 5 commits into from
Dec 4, 2024

Conversation

eonarheim
Copy link
Member

@eonarheim eonarheim commented Dec 3, 2024

===:clipboard: PR Checklist :clipboard:===

  • 📌 issue exists in github for these changes
  • 🔬 existing tests still pass
  • 🙈 code conforms to the style guide
  • 📐 new tests written and passing / old tests updated with new scenario(s)
  • 📄 changelog entry added (or not needed)

==================

tiling.mp4

Added convenience types ex.TiledSprite and ex.TiledAnimation for Tiling Sprites and Animations

const tiledGroundSprite = new ex.TiledSprite({
  image: groundImage,
  width: game.screen.width,
  height: 200,
  wrapping: {
    x: ex.ImageWrapping.Repeat,
    y: ex.ImageWrapping.Clamp
  }
});

const tilingAnimation = new ex.TiledAnimation({
  animation: cardAnimation,
  sourceView: {x: 20, y: 20},
  width: 200,
  height: 200,
  wrapping: ex.ImageWrapping.Repeat
});

@github-actions github-actions bot added the enhancement Label applied to enhancements or improvements to existing features label Dec 3, 2024
Copy link

cloudflare-workers-and-pages bot commented Dec 3, 2024

Deploying excaliburjs with  Cloudflare Pages  Cloudflare Pages

Latest commit: b86f845
Status: ✅  Deploy successful!
Preview URL: https://24ffd3f6.excaliburjs.pages.dev
Branch Preview URL: https://feat-tiling.excaliburjs.pages.dev

View logs

@eonarheim eonarheim merged commit a47b204 into main Dec 4, 2024
8 checks passed
@eonarheim eonarheim deleted the feat/tiling branch December 4, 2024 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Label applied to enhancements or improvements to existing features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant