0

hello i am new to this forum i am basically stuck with this programme and i need help....it is a brick game....i want to move the ball and slider at the same time without using threads....i am allowed to use the gotoxy function arrays and pointers thats it
can anyone help me
=(

4
Contributors
6
Replies
7
Views
6 Years
Discussion Span
Last Post by WaltP
0

Maintain a game control loop that iterates through the movable components and updates them each 'tick' of the clock.

0

I once made something like that. Command prompt? Make a loop and then every second move update the screen and wait for input.

0

no visual C++...can you be a little more specific?
should i post my code?

0
while ( 1 ) {
   update_paddle (screen);
   update_ball (screen);
   update_other_moving_parts (screen);
   optional_sleep_delay ();
}

That is the framework. Each line is a function call to encapsulate behavior. Each call can take the screen as an argument (or you can design around this).
The sleep is so that you can control the pace at which things move around your screen.

0

i have used gotoxy to move my ball and i have used a 2d array to make the array.....so basically what u r saying is that i should call my functions in a infinite loop?
should i post my code here or not?:/

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.