3,606 reputation
1717
bio website vyznev.net
location Helsinki, Finland
age
visits member for 1 year, 9 months
seen 2 hours ago
stats profile views 144

I like programming in Perl and C. I know Java and PHP too (I'm a MediaWiki developer), but I can't really say I like them. I keep meaning to learn Python some day, but never seem to get around to it.

I'm working on a Ph.D. in biomathematics. I also like programming puzzles and cryptography.

Please consider any (original) code I post to Stack Overflow (and other Stack Exchange sites) to be released under CC-Zero unless stated otherwise. You may do whatever you want with it and don't have to credit me in any way, although of course that would be nice.


Nov
1
revised How can I implement gravity?
added 1611 characters in body
Nov
1
comment How can I speed up this design?
@bear96: 100s of images doesn't sound that bad, even for a phone, unless those images are huge. To minimize overhead, thedeadlybutter's suggestion of using a sprite sheet sounds like a good idea.
Nov
1
answered How can I speed up this design?
Oct
31
answered How can I implement gravity?
Oct
31
comment How can I implement gravity?
You can fix most of the issues with Euler integration simply by replacing position += velocity * timestep above with position += (velocity - acceleration * timestep / 2) * timestep (where velocity - acceleration * timestep / 2 is simply the average of the old and new velocities). In particular, this integrator gives exact results if acceleration is constant, as it typically is for gravity. For better accuracy under varying acceleration, you can add a similar correction to the velocity update to get velocity Verlet integration.
Oct
30
revised Realistic Jumping
added 68 characters in body
Oct
30
answered Realistic Jumping
Oct
27
comment random spike in delta time
OK, obvious question: glfwGetTime() returns a double -- are you sure your time variables are doubles and not ints?
Oct
27
revised random spike in delta time
added 978 characters in body
Oct
27
answered random spike in delta time
Oct
20
comment How does a one-man developer do its games' sounds?
@PeterTaylor: One should be careful, though, since while a lot of famous classical compositions are in the public domain, a lot are not (yet). Want to use something from Orff's Carmina Burana? Sorry, the lyrics are in the public domain (dating from the 12th century), but the music (AFAICT) is not. Ditto for most of the composers in this list.
Oct
20
comment Does an inventory limit in an MMORPG make sense?
I'm somewhat surprised nobody's linked to this Penny Arcade strip yet.
Oct
17
comment Negamax implementation doesn't appear to work with tic-tac-toe
Given that you seem to have solved your problem, you should accept your answer by clicking the check mark to the left of it.
Oct
9
answered Best practices on separating Update and Draw on game loop
Oct
8
revised Can a high FPS negatively affect how a program runs?
added 238 characters in body
Oct
8
answered Can a high FPS negatively affect how a program runs?
Oct
8
answered Given a RGB color x, how to find the most contrasting color y?
Oct
8
revised Finding shapes in 2D Array, then optimising
added 64 characters in body
Oct
8
revised Finding shapes in 2D Array, then optimising
oops, forgot to shrink A; s/block/shape/
Oct
8
revised Finding shapes in 2D Array, then optimising
added 2015 characters in body