297 reputation
127
bio website
location
age
visits member for 2 years, 4 months
seen 2 days ago

Mar
21
comment How to structure code for many unique weapons/spells/powers
+1 for the nice answer and for you to have enough rep to comment. ;) Welcome.
Feb
12
comment Why no night sky with realistic star constellations?
I'd put it shortly like this: Because nobody implemented it. Making realistic sky is more expensive than making one up, and most of the time nobody notices. So the management has no reason to allocate funds to such an endeavor. (And indies, well, don't have funds. :)
Dec
31
comment Elegant solution for coloring chess tiles
A nice way of putting it might be saying a tile is light as long as its coordinates have the same parity.
Nov
28
awarded  Yearling
Jul
10
awarded  Fanatic
Jul
3
revised Find nearest tile of type x
I renamed the Queue<> variable from from 'stack' to 'queue'. It was a bit confusing.
Jul
3
comment Find nearest tile of type x
@bummzack yes, it may not find the optimal path, but that's irrelevant. The asker wanted an algorithm for finding the nearest tile that specifies the given condition; not a pathfinding one.
Jul
3
suggested suggested edit on Find nearest tile of type x
Jul
3
comment Find nearest tile of type x
You should keep in mind, though, the special case here - when there are multiple equidistant tiles of the target type. (I.e. they are the same distance from your starting tile.) The algorithm provided by @RoyT just returns whichever one is first chosen by the PathNode.Neighbours implementation.
Jul
3
comment Find nearest tile of type x
My words exactly. I'll just add a nice way of visualizing the algorithm: it behaves as if you started pouring water on your starting tile, which then flows into adjacent (accessible) tiles in all directions. (Hence, 'floodfill'.) The first tile of the sought type to be flooded is your nearest match.
May
1
awarded  Enthusiast
Feb
2
answered Implementing Object Composition
Jan
25
awarded  Excavator
Jan
25
revised 2D graphics - why use spritesheets?
Added units for clarity.
Jan
25
suggested suggested edit on 2D graphics - why use spritesheets?
Jan
16
comment How should I go about learning XNA?
I love how @Twitchy wants a smooth animation.
Dec
22
awarded  Critic
Dec
19
revised Best next step for game AI implementation
added 442 characters in body
Dec
19
answered Best next step for game AI implementation
Dec
16
awarded  Nice Answer