Sunday, May 14, 2017

Drinking Parrot - ALICE Program

Drinking Parrot

A small toy popular with children is a drinking parrot. The parrot is positioned in front of a container of water and its body given a push. Because of the counterbalance of weights on either end of its body, the parrot repeatedly lowers its head into the water. Create a simulation of the drinking parrot (Objects). Use an infinite Loop statement to make the parrot drink.

Hint: We used the blender object (Kitchen gallery), p
ushed the base into the ground, deleted the lid, and changed the color of the blender to blue to simulate a bucket of water.

                                                                                        

Solution:
In this program, when the user first clicks anywhere on the parrot, it starts moving up and down infinitely.
Below is the video for this Alice program, created using Alice 2.3


Contact me for the comprehensive step-by-step guide on how to create this game in ALICE as well as the final source code.

No comments:

Post a Comment