294 reputation
17
bio website github.com/CodesInChaos
location Frankfurt, Germany
age
visits member for 3 years, 10 months
seen Apr 27 at 11:10

NSA running around with their hair on fire because they realise if everyone starts using OTPs and not their weak AES algorithm then their PRISM programme is worthless. --- zuallauz - Would this simple encrypted chat program be feasible using One Time Pads?


Mar
3
awarded  Citizen Patrol
Jan
25
comment Unity 3d 4 players Only 4 buttons can be pressed at a time
Cheap keyboards won't even recognize many 3 key combinations.
Jan
20
comment What is the simplest way to calculate distance in a 3D environment?
Most vector libraries should have a built in function to compute the (squared) length of a vector.
Jan
20
comment What is the simplest way to calculate distance in a 3D environment?
This is not the Euclidean distance, it's Manhattan distance
Sep
24
awarded  Autobiographer
Aug
22
comment How to avoid movement speed stacking when multiple keys are pressed?
It's about decoupling, not performance or different behaviour. I view computing the input direction and how the game reacts to it as different concerns. So I'd probably split this into two functions even, one GetInputDirection and then one that computes the movement. (And don't forget to use @nickname for notifications)
Aug
21
awarded  Commentator
Aug
21
comment How to avoid movement speed stacking when multiple keys are pressed?
I'd clamp to 1 and only multiply with moveSpeed after clamping and possibly merge it with the multiplication by deltaTime.
Aug
21
comment How to avoid movement speed stacking when multiple keys are pressed?
This produces NaN if no keys are pressed
Aug
19
comment What kind of steering behaviour or logic can I use to get mobiles to surround another?
Some kind of repelling force can be a good idea, but the details are tricky. I experimented with these in a space themed RTS and recommend not following physics too closely and rather modeling it so it behaves nicely. Some observations: 1) Since this is no physics simulation I'd only apply the force over short distances. 2) This can't prevent finite bodies from overlapping 3) The hard potential easily causes numerical errors, such as particles being refracted at high velocities. 4) Once you have a significant number of particles and pressure in the middle rises, things tend to get ugly.
Apr
1
comment How can I store game metadata in a .png file?
One could simply send the data through Base64 and store it as a single value
Sep
3
awarded  Critic
Jul
16
awarded  Yearling
Jul
11
revised Game getting progressively laggier?
formatting ans spelling
Jul
11
suggested approved edit on Game getting progressively laggier?
Jul
18
comment Unity or MonoTouch with XNATouch/MonoGame? same price
Seems to be outdated now: tirania.org/blog/archive/2011/Jul-18.html
Jul
18
answered In-Game Tutorial Decisions
Jul
18
comment What math should all game programmers know?
in most cases you want atan2 since this takes care of the quadrant handling by itself.
Jul
16
revised How are deterministic games possible in the face of floating-point non-determinism?
added 105 characters in body
Jul
16
awarded  Supporter