Need a SpatialMap::get_all that returns all things at that spot because can't pickup potion after skull #81

Closed
opened 3 days ago by zedshaw · 0 comments
zedshaw commented 3 days ago
Owner

If there's a potion or other loot on the ground, and an enemy dies there, then you can't pick up the potion. Or, if an enemy is in front of you and you drop a potion at their feet then it stops all combat. This is because the SpatialMap::get() returns just one entity, the first one, so the others never get accessed unless each on e is removed.

If there's a potion or other loot on the ground, and an enemy dies there, then you can't pick up the potion. Or, if an enemy is in front of you and you drop a potion at their feet then it stops all combat. This is because the SpatialMap::get() returns just one entity, the first one, so the others never get accessed unless each on e is removed.
zedshaw self-assigned this 3 days ago
zedshaw closed this issue 1 day ago
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: learn-code-the-hard-way/raycaster#81
Loading…
There is no content yet.