I’ve been writing a little 2D project called warlock (http://www.cokeandcode.com/warlock)
After lots of advice from here I decided to go for (what seems to be the standard) route of having one central game loop that runs on the main thread and controlling pretty much everything from there…
However, I have a small problem. My characters are moved one pixel at a time every about 20 ms. However, if my frame rate falls particularly low (infact anywhere under 50) the characters movement is actually slowed down compared to faster systems. This seems logical in that the character doesn’t get as many chances to move.
Now, I’ve considered making the movement a factor of time. This would pretty fiddly for the little spritey type game I’m writing. I was just wondering if there is a better way… I considered another thread to run the movement, but I’ve seen that most people here don’t think seperate threads are a good idea…
Any help, or feedback on the game at all… would be most appreciated…
Kev