Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 21890

Spatial partitioning refers to dividing up some space (such as the game world) into regions with the intent to efficiently search or traverse those regions or the objects within those regions.

0 votes

Using spatial hash to determine view distance

Is it really that problematic to have the camera scroll past the edges of the map? Giving the "outside area" of the game space a design that looks natural (even though it is inaccessible) is usually a …
Philipp's user avatar
  • 122k
3 votes

Performance for range of effect in city builder

Sounds like a use-case for influence maps. For every kind of building effect you have, you create a two-dimensional array of integers with the size of your map. These are "influence maps" which repre …
Philipp's user avatar
  • 122k
3 votes

Optimizing a quadtree for circles and circular queries

As explained in the answer by Romen, there aren't many applicable data structures which are not based on rectangles. But there are a couple other optimizations you can do for circle-circle collisions …
Philipp's user avatar
  • 122k
4 votes
Accepted

Should I check all the collisions in the game world?

Generally game mechanics should not behave differently depending on whether or not the player observes the event. The player expects that the game mechanics outside of their field of view behave exact …
Philipp's user avatar
  • 122k