title: Using timer and game loop
body: <p>I'm building a simple console game, there is the player who moves <em>when key press down</em>, and there are enemies which moves <em>automatically, each type of enemy moves one time in X miliseconds</em>.</p>
  
  <p>As I understood I should using the <code>timer</code>, but I don't really know how to do that in the game loop (isn't built yet because I don't know how to do with the timer. but it should be <code>while loop</code> I think). the game ends when the enemy 'touch' the player (same x and y).</p>
  
  <p>One important thing: I can't you in this exercise in <code>Thread</code>, but if you have other suggestions instead of using <code>Timer</code> you are welcome.</p>
  
  <p>Thank you.</p>