9,175 reputation
42032
bio website gameprogrammingpatterns.com
location Seattle, WA
age 36
visits member for 4 years, 3 months
seen Oct 15 at 13:36

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


Sep
30
awarded  Explainer
Jul
31
awarded  Good Answer
Jul
22
awarded  Nice Answer
Jul
14
awarded  Yearling
Jul
6
awarded  Great Answer
Jul
2
awarded  Great Question
Jun
15
awarded  Nice Answer
Apr
21
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