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

Objects for Games::TMX::Parser #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Objects for Games::TMX::Parser #1

wants to merge 2 commits into from

Conversation

kba
Copy link

@kba kba commented Aug 7, 2012

Hi Ran,

I hacked basic object support into the module. I want to use this to define areas within my maps for rooms. As it is now, the coordinates (in terms of tiles, not pixels, as an arrayref [$y, $x]) can be calculated, the objects that are at a specific coordinate can be listed and introspection from map to objectgroup to object and back is possible.

It's probably not very efficient and the polygon fill algorithm isn't perfect, but it's a start.

Best wishes,
Konstantin

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

Successfully merging this pull request may close these issues.

1 participant