There are a lot of different sorts of game loops you can use. In
general, you can think of a game loop as having 3 different pieces:
1) Some sort of, well... loop. From timer calls to while loops to recursive function calls. (the loop)
2) A way to delay the length of each loop iteration so you get a frame rate you like. (the timing mechanism)
3) A way to make the game speed remain independent of the speed of the loop. (the interpolation)
Fuente: http://www.java-gaming.org/index.php?topic=24220.0
No hay comentarios:
Publicar un comentario