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

Add higher level abstractions for Map and Sprite? #1

Open
trosel opened this issue Jul 5, 2018 · 2 comments
Open

Add higher level abstractions for Map and Sprite? #1

trosel opened this issue Jul 5, 2018 · 2 comments

Comments

@trosel
Copy link

trosel commented Jul 5, 2018

Any thought about making a Map be a list of Option<Sprite> instead of a list of coords? That way you can query if pieces are in certain locations for collision detection?

@DimChtz
Copy link
Owner

DimChtz commented Jul 5, 2018

Yep, I like this. A new struct Sprite containing the location (x, y) and the display character, and a function called when 2 sprites collide.

@trosel
Copy link
Author

trosel commented Jul 7, 2018

@DimChtz What really might help flesh this out is an examples directory that shows how you intend it to be used.

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