284 reputation
113
bio website straypixels.net
location
age
visits member for 2 years
seen 2 days ago

Programmer by day, sleeper by night


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.
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