Hi all!
I recently uploaded the latest video on the series "Breaking Fast Programming", where we explain how we can achieve an animation for the typical "Press Start" text at the beginning of most games.
As a comment mentioned (thanks, @judelco), there is an error in the final expression:
theta = theta + 4 * dt % 360
, since it should be:
theta = (theta + 4 * dt) % 360
Otherwise, we are implicitly writing:
theta = theta + (4 * dt % 360)
because of operator precedence, and theta would grow indefinitely.
See you!
FM
No hay comentarios:
Publicar un comentario