A bit of optimization to keep from generating the sorted sprite list over and over. Also tried to solve the problem of tombstone covering everything but no luck.
This commit is contained in:
parent
077f0e84ea
commit
9bf6926dc3
9 changed files with 36 additions and 32 deletions
|
@ -40,6 +40,6 @@ class SpatialMap {
|
|||
DinkyECS::Entity get(Point at) const;
|
||||
FoundEntities neighbors(Point position, bool diag=false) const;
|
||||
|
||||
SortedEntities distance_sorted(Point from, int max_distance);
|
||||
void distance_sorted(SortedEntities& sorted_sprites, Point from, int max_distance);
|
||||
size_t size() { return $collision.size(); }
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue