C - Moving Obstacle?

Soldato
Joined
4 Mar 2008
Posts
2,563
Location
Guildford
Hi all,

I'm currently trying to write a program in C. It is basically a game where you throw something and get a score from where it lands.

Now what I want to be able to do is to have a moving obstacle in the way (basically a vertical line moving up and down the screen)

and I cant for the life of me work out how to get the line to move slowly up and down (the user chooses the speed it moves up and down at)

Is this possible? (I am using a graphics library compiled by a professor at uni)

Sorry if I'm being too vague, let me know what other information you need.

Drowning in code here :(
 
Back
Top Bottom