Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+2 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 (4.1k points)

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.1k points)
...