245 reputation
112
bio website
location
age
visits member for 1 year, 6 months
seen 12 hours ago

Programmer by day, sleeper by night


Oct
24
comment How do I design very difficult games?
+1 for "A player should feel that he's getting closer to finishing the level". The best high-difficulty games are also high-skillcap games.
Sep
30
awarded  Explainer
Sep
24
awarded  Autobiographer
Sep
24
comment Why is there a huge update-delay in my client/server code?
While I agree that clientside prediction is generally necessary, I think there's something else going on; a roundtrip time of two seconds is highly irregular, unless there's some serious network congestion.
Sep
19
revised Large 2D Arrays Causing Garbage Collection
added 68 characters in body
Sep
19
answered Large 2D Arrays Causing Garbage Collection
Sep
18
awarded  Citizen Patrol
Sep
11
awarded  Informed
Sep
8
comment Can the different computation power in a multi-player game affect each player's performance?
Not directly relevant, but tangentially related.
Aug
14
comment SFML: Monster following player on a straight line
Ah, okay, by "straight" you mean "horizontal and vertical only" (a diagonal line is still straight).
Aug
13
comment SFML: Monster following player on a straight line
Normalization alone will get you a unit vector, it's true, but you can multiply the resulting vector by a scalar (number) to scale it. If you want your monster to move 50 units at a time, just multiply the normalized vector by 50.
Aug
13
comment SFML: Monster following player on a straight line
The normalize function is essentially just v = v/magnitude(v), and magnitude(v) = sqrt(v.x*v.x + v.y*v.y). You can implement these yourself; they're not specific to any library.
Aug
5
awarded  Yearling
Jul
14
awarded  Critic
Jul
8
answered How to check for collisions in “diagonal” tiles?
Jun
25
comment How can I simplify this code to compute the shortest rotation between two angles?
std::min(std::max(from, to) - std::min(from,to), std::min(from,to) + 2*pi - std::max(from,to));?
Jun
12
comment Predicted target location
"I'm having an issue with calculating the predicted linear angle..." But the algorithm in the article doesn't return an angle, and if it wants a velocity in components, it's implied you already know the angle of the velocity. What exactly are you trying to calculate?
Jun
12
awarded  Commentator
Jun
12
comment How to implement a simple bullet trajectory
For a searchable term, try polar coordinates - very useful in general for things in game programming.
Jun
10
revised OpenGL - have object follow mouse
added 1252 characters in body