title: problems with a simple game
body: <p>I am almost new to C programming and I wanted to develop a simple game where the player has to move the character on a line at the bottom of the screen, while enemies are randomly generated on the top line and every second existing enemies slide down of one line. I have 2 main questions: how can i make a function do something after a certain period of time (slide down the enemies of one line) and how can i make the character move as the player press the correspondent key WHILE the other function is working in cycle? </p>