fnord
  • Member for 9 years, 6 months
  • Last seen more than 1 year ago
  • San Jose, CA
What's a good alternative to colored tiles to account for color blindness?
14 votes

I don't know if there exists a set of colors that all people will be able to differentiate, whether or not they have any color-blindness. It might be a better idea to use an additional indicator ...

View answer
Player ranking using Elo with more than two players
Accepted answer
10 votes

As suggested by the top link in my Google search, you could calculate the individual changes in a players Elo rating (your R values), and then sum them up to provide the total change to apply to each ...

View answer
Diamond-square terrain generation problem
3 votes

One possibility is that you are taking a shortcut with your implementation that the algorithm on your linked page does not. For the square stage, you are calculating the height of the points with ...

View answer
How to generate water pools on a 2D tile grid?
3 votes

I'm not sure why you would be setting the tiles randomly to water in your spiral sequence, since that would (as you point out) leave ground on the inside of the pools. If you changed all of the tiles ...

View answer
Unable to generate standalone noise
1 votes

Where is m_generator coming from? I don't see it listed in the rest of your code provided, so is it initialized somewhere else? You could also put some debug prints just before throwing the ...

View answer
How can I move a polygon edge 1 unit away from the center?
Accepted answer
1 votes

Your polygon is rotating to the left because the unit vectors you are adding have the opposite sign of your x component (gotten when you create the perpendicular vectors). Adding those to your ...

View answer
How to Align Gun with Bullets
0 votes

It's not easy to tell form the code you provided (what does addBullet do? where does it draw the bullet in relation to your sprite?) nor is there information about your sprite in general (how big it ...

View answer