Skip to content

Conversation

@drew-wilson
Copy link

Change the for-loop to accept integers larger than two characters. Currently, if you have more than 99 unique tiles, the map parser won't handle that with mapFile.get(c) twice. With this new method, we're getting all integers at once and dealing with it from there.

Also, you probably will need to change your .map file. Here's an example of what your row should look like:

00 , 00 , 00 , 10 , 11 , 12 , 13 , 14 , 15 , 16 , 17 , 18 , 19 , 20 , 00 , 00 ,

Change the for-loop to accept integers larger than two characters
Copy link
Author

@drew-wilson drew-wilson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops! nice catch.

@drew-wilson drew-wilson deleted the drew-wilson-patch-1 branch July 18, 2020 23:57
@drew-wilson drew-wilson restored the drew-wilson-patch-1 branch July 19, 2020 00:05
Copy link
Author

@drew-wilson drew-wilson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add semicolon

@drew-wilson drew-wilson reopened this Jul 19, 2020
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.

2 participants