Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+16 votes

pls

asked in CSC211_Winter2018 by (1 point)

1 Answer

+9 votes

After I updated the xy values for the pursuer, the xyvalues for the target if it moved, the score if it changed, and the timer; this is what I did

sleep the panel with the game
clear the panel with the game
clear the panel with the score/timer
draw the pursuer
draw the target
draw the score
draw the timer

Notice that I didn't sleep the panel with the score/timer. Basically the sleep is to just stall execution for a few milliseconds.

You should just have one big loop to control the game. Not a loop for each panel.

answered by (1 point)
...