8,867 reputation
21829
bio website gameprogrammingpatterns.com
location Seattle, WA
age 35
visits member for 3 years, 9 months
seen 8 hours ago

I'm a programmer at Google. Before that, I was a game programmer for Electronic Arts for eight years.


8h
accepted STL for games, yea or nay?
Apr
1
awarded  Nice Answer
Mar
28
awarded  Nice Answer
Feb
15
comment drawing line using angle
This is the right answer. Note that you need to check for the case where dist is zero (the enemy is right on top of the player) and avoid drawing in that case. Also, when using Math.Cos and Math.Sin, note that the angle should be in radians, not degrees.
Oct
23
awarded  Guru
Jul
14
awarded  Yearling
Jun
14
comment Any tips for creating cross-platform games?
If the function call ends up just being a wrapper around a system call, the compiler will likely inline it. If it is doing file IO, odds are quite slim that function call overhead will be the bottleneck. Moving stuff around registers is nothing compared to hitting the disk.
May
8
awarded  Good Answer
Apr
24
awarded  Good Answer
Apr
7
awarded  Good Answer
Feb
19
awarded  Famous Question
Aug
29
awarded  Nice Answer
Jul
14
awarded  Yearling
Jun
8
awarded  Caucus
Jun
5
awarded  Good Answer
Nov
17
awarded  Nice Answer
Oct
11
awarded  Favorite Question
Sep
22
answered XNA C#: How can I prevent blurring when drawing from a RenderTarget2D?
Sep
6
awarded  Good Answer
Aug
19
answered Component entity system - Updates and call orders