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

+3 votes

Currently, I am having issues with my background. The image for the background popped up for another screen with the setting screen. How can I make the background appear on the games? Thank you.

asked in CSC201 Spring 2021 by (1 point)

1 Answer

+2 votes

You may not be drawing it to the correct window. When you first create the window in the playGame function, make sure you are drawing the background to that same window and not a different one. You can use different GraphWin names to specify which window like "win" or "window" or "gameWindow" etc. For example, I use 'window' for the game and 'win' for my gameover.

answered by (1 point)
...