Skip to content

Tilemap Info #18

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

Open
wwderw opened this issue Jan 6, 2023 · 5 comments
Open

Tilemap Info #18

wwderw opened this issue Jan 6, 2023 · 5 comments

Comments

@wwderw
Copy link

wwderw commented Jan 6, 2023

With the new tilemap ability in Aseprite 1.3, any plans to support loading/displaying tilemap info to help setup collisions/animations etc for environments?

@RobLoach
Copy link
Owner

RobLoach commented Jan 6, 2023

Thanks, would be awesome to have this, as then we might not need to use Tiled or another system 😝

Made an issue in the cute_aseprite queue https://bit.ly/3ZewWaN

Regarding collisions, you can load Slice data with LoadAsepriteSlice(), which does have Bounds. Looks like the structs should be moved to the definition section so that the properties can be grabbed though. Getting the Rectangle bounds might be important 😉

@wwderw
Copy link
Author

wwderw commented Jan 6, 2023

Thanks for doing that. I should have thought of that given the cute_header is the dependency. Sorry about that.

@RobLoach
Copy link
Owner

RobLoach commented Jan 6, 2023

No need to be sorry. It has been something Iv'e been wanting too. Glad to have the issue open and know people have been thinking of it too.

@RobLoach
Copy link
Owner

RobLoach commented Jan 6, 2023

Hav eyou used much of the Tilemap stuff in Aseprite? I haven't explored it much. How does it work?

@wwderw
Copy link
Author

wwderw commented Jan 6, 2023

There was a little bit of a wonky start for me with the actual creation of the individual maps and then getting them laid out after that. At first, it looked like it was creating and laying them out in a map at the same time, which lead to some funky results. Maybe I was just slow on the uptake, I dunno.

I'm hoping that with one program having both functionality and a nice mechanism to read/load/display from that one format will do better compared to using something like Tiled. As an individual program, I do like Tiled, but either with Raylib or with Phaser (at least last time I checked with Phaser) I haven't found an easy mechanism to handle Tiled files. I just export as a PNG and manually apply collisions etc, which can be tedious, but it did work.

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