When the penguin is mouse-clicked pass the penguin object


Penguin Slide

1400_e5a495b0-70e0-4147-9fbf-afd2869b3f7c.png


A favorite activity of penguins in the local zoo is to slide down an icy slope into a pool of water in the pond. Create a world with a lake scene (Environments) and three penguins (Animals) on the slope, as shown below. Make the program event-driven. Allow the user to click on the next penguin to slide down the slope into the pool of water. Each penguin slides on its belly and spins around as it slides. Each penguin should spin some number of times. When the penguin reaches the pond, move the penguin down 5 meters so it disappears below the water. Write only one event handling method. When the penguin is mouse-clicked, pass the penguin object that was clicked and the number of times the penguin is to spin around as it slides down the slope.

Optional: Add a water-splash sound as the penguin hits the water.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: When the penguin is mouse-clicked pass the penguin object
Reference No:- TGS01495906

Expected delivery within 24 Hours