Open kawa-kokosowa opened 7 years ago
i think all that's left is to do actual group management and then it's done? it'd be nice to get it integrated into demo before merge. oh and more tests... review at any point welcome (@kcsaff?). I have a lot of stuff to clean up. Note that I should file a bug report for not having a comprehensive solution for looking up partitions for a rect which is two times the normal_partition_height
or normal_partition_width
, but I consider this a non-issue for now; the current method leaves room to be left as a heuristic.
you can use spatial partitions to selectively only update the contents of partitions that are on screen/nearby/etc. i should note of this.
I'm creating this PR early, please read the commit messages.
in the future a method will handle updating positions, which will have a side effect of moving said object having its position updated (a sprite) to the sprite group of respective spatial partition.