dt-rush / sameriver

game engine written in go
Other
1 stars 1 forks source link

Option to have spatial hash system *shift* to track a certain entity (player) #38

Open dt-rush opened 1 year ago

dt-rush commented 1 year ago

It should be possible to define a spatial hash system based on a worldwidth/height and grid dimensions such that it doesn't cover the whole world (which could be huge, and contain mainy inactive chunks) that will present its grid with the tracked entity always at the center and report the positions of entities relative to it.