Question: Please answer in C++ Write an SDL game in which the background colour is randomly chosen from these colours: red, green, blue, yellow, or white.

Please answer in C++

  1. Write an SDL game in which the background colour is randomly chosen from these colours: red, green, blue, yellow, or white. The player reacts and presses the key corresponding to the first letter of the background colour (R, G, B, Y, or W), and another random colour is displayed. If the user presses a wrong key, the game is over and a game-over message (a .bmp image) is displayed.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!