-
Notifications
You must be signed in to change notification settings - Fork 97
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
Split tile arrays into Chunks #727
base: main
Are you sure you want to change the base?
Conversation
Removes tile and data arrays from Level, and disperses it among Chunks. These are managed in ChunkManager, used by Level and LevelGen in order to access Chunks and Tiles.
This task in fact should be a part of the engine rewrite, so I put this on hold (at least). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neat implementation of chunks. I'm very positive this is a good implementation but I do have some comments on the object-oriented approach.
Replaces the redundant class "Chunk" with its equivalent data structure directly in ChunkManager. Also increases Chunk Size to 64
@Makkkkus I went ahead and tried having the tile data arrays directly in ChunkManager. It seems simple enough to understand, I think it works as is for now. Can be made back into its own Chunk class (or essentially a struct) depending on changes to level format or data structure. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very good
Removes tile and data arrays from Level, and disperses it among Chunks. These are managed in ChunkManager, used by Level and LevelGen in order to access Chunks and Tiles.