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

Support for animated tiles and collision #32

Open
framp opened this issue Dec 26, 2020 · 1 comment
Open

Support for animated tiles and collision #32

framp opened this issue Dec 26, 2020 · 1 comment

Comments

@framp
Copy link
Contributor

framp commented Dec 26, 2020

Hi all,

I'm looking into adding support for animated tiles and collision support and I'm curious to see if anyone has already spent some time thinking / working on this before I do

For reference, I've used this library in the past which implements the same functionality (but in JS): https://github.com/colinvella/phaser-tilemap-plus

There may be some work needed in tiled-rs to support object layers and animated tiles

My general idea is to:

  • Expose the object layer so that you can plug that data manually in your collision detector system
  • Copy bevy spritesheet approach for animations
@framp framp closed this as completed Dec 27, 2020
@framp framp reopened this Dec 27, 2020
@dmtaub
Copy link
Collaborator

dmtaub commented Mar 15, 2021

I've been looking at this and it seems fairly straightforward. Unfortunately after adding object loading, maps.rs really needs to be refactored. Once it's broken up into smaller modules, I can definitely see setting up animations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants