Reputation
10,118
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
4 24 34
Newest
 Nice Answer
Impact
~476k people reached

Mar
11
comment Game State 'Stack'?
Good point, fixed!
Mar
11
revised Game State 'Stack'?
added 1 character in body
Feb
9
awarded  Nice Answer
Aug
18
awarded  Good Answer
Jul
14
awarded  Yearling
Jul
3
awarded  Guru
Jan
29
awarded  Nice Answer
Oct
26
awarded  Good Answer
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