Week 11 Assignment

by kmaio
See Code Download Embed
When the green flag is clicked, this code programs two fish to swim across the screen and a jelly fish to float upward.

The fish and jellyfish are composed of multiple moving sprites along with synchronized sound effects.

The fish swim from one side of the stage to the other while their back and side fin flap, their eyes blink, and bubbles come out of their mouth along with bubble noises. In addition, the fish are randomly placed at a y-position after each crossing of the stage and they are programmed to appear smaller as the y position increases and bigger while it decreases to give more depth to the animation.

The jellyfish swims from the bottom to the top of the stage at a random x position each time. The jellyfish's tentacles move up and down to simulate a propelling motion along with a synchronized squelching sound.

Created November 7, 2022

Last updated November 7, 2022

Shared November 7, 2022