294 reputation
113
bio website straypixels.net
location
age
visits member for 2 years, 2 months
seen Jun 30 at 19:16

Programmer by day, sleeper by night


Jun
22
answered Programming game logic outside the game loop
Jun
11
comment How can I keep the clicked point under the mouse when rotating? (GLM)
Gotcha - just took a look at the doc for GLM, looks like a monster to use.
Jun
10
comment How can I keep the clicked point under the mouse when rotating? (GLM)
Little confused - so the glm::rotate function actually takes radians, not degrees? Not sure how the last paragraph relates to the final answer.
May
6
comment In HaxeFlixel, how do I avoid hard-coding dialogue?
I wouldn't integrate a scripting engine just for a dialogue system unless I were doing something very complicated. All that's really needed here is some text files and some work to read/display them.
Apr
15
comment Pan camera within bounds of large image
Can you get the position of the camera and use that in place of totalX? That would solve your accumulation problems.
Mar
16
answered Math for 2d movement with max speed?
Mar
16
comment Math for 2d movement with max speed?
What actually happens with the current code? Hard to look for a problem without knowing the problem.
Jan
18
awarded  Popular Question
Dec
15
comment How can I come up with a simple diminishing return equation?
You use "graph theory" a couple times in the post; that is something else entirely. I think what OP is looking for comes closer to modelling.
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.