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

TileMap method to iterate over rows or columns #1859

Closed
eonarheim opened this issue Apr 30, 2021 · 1 comment · Fixed by #1887
Closed

TileMap method to iterate over rows or columns #1859

eonarheim opened this issue Apr 30, 2021 · 1 comment · Fixed by #1887
Labels
stale This issue or PR has not had any activity recently

Comments

@eonarheim
Copy link
Member

Context

Currently TileMaps only support iterating over Cells in row major order from the TileMap.data property. Many times you want to iterate over rows or columns to do some sort of generation

Proposal

Add a TileMap.rows and a TileMap.columns that organize the cells into rows and columns.

public get rows(): Cell[][] {
  ...
}

public get columns(): Cell[][] {
  ...
}
@github-actions
Copy link

This issue hasn't had any recent activity lately and is being marked as stale automatically.

@github-actions github-actions bot added the stale This issue or PR has not had any activity recently label Jun 30, 2021
eonarheim added a commit that referenced this issue Jul 3, 2021
…ata (#1887)

Closes #1862 
Closes #1861 
Closes #1859

## Changes:

- Add mechanism for iterating over rows/cols
- Add Cell arbitrary graphics
- Add map for arbitrary data in Cells
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale This issue or PR has not had any activity recently
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant